{# © 2026 ShadowStrike. All rights reserved. — Aut Viam Inveniam Aut Faciam One writeup's header…sections, shared by writeup.html and bundle.html. Expects `w` (a WriteupSchema). User text is autoescaped — never |safe, never Markup() (INV-P2-3). -#} {% macro blocks(text) -%} {% for seg in split_fences(text) -%} {% if seg.kind == "code" %}
{{ seg.body }}
{% else %}

{{ seg.body }}

{% endif %} {%- if not loop.last %} {% endif %} {%- endfor %} {%- endmacro -%}

CTF Writeup

{{ w.challenge_name }}

{{ w.ctf_name }}

{%- if w.time_spent_minutes %} {%- endif %}
CTF{{ w.ctf_name }}
Category{{ w.category }}
Difficulty {% for i in range(1, 4) %}{% endfor %}{{ w.difficulty }}/3
Date{{ w.date }}
Author{{ w.author }}
Time spent{{ w.time_spent_minutes }} min

Tools Used

{% if w.tools_used %} {% else %}

None recorded.

{% endif %}

Approach

{{ blocks(w.approach) }}

Flag

{{ w.flag }}

{% if w.notes %}

Notes

{{ blocks(w.notes) }}
{% endif %}