1{% extends "base.html" %}2
3{% block title %}{{ page.title }} | {{ config.title }}{% endblock %}4
5{% block content %}6<article>7 <h1>{{ page.title }}</h1>8 {% if page.date %}9 <p class="post-meta">10 {{ page.date | date(format="%B %d, %Y") }}11 {% if page.reading_time %}· {{ page.reading_time }} min read{% endif %}12 {% if page.word_count %}· {{ page.word_count }} words{% endif %}13 </p>14 {% endif %}15
16 {% if page.taxonomies.tags is defined %}17 <p class="post-tags">18 {% for tag in page.taxonomies.tags %}19 <a href="{{ config.base_url }}tags/{{ tag }}/" class="tag">#{{ tag }}</a>20 {% endfor %}21 </p>22 {% endif %}23
24 {% if page.toc %}25 <nav class="toc">26 <details open>27 <summary>contents</summary>28 <ul>29 {% for h in page.toc %}30 <li><a href="{{ h.permalink }}">{{ h.title }}</a>31 {% if h.children %}32 <ul>33 {% for c in h.children %}34 <li><a href="{{ c.permalink }}">{{ c.title }}</a></li>35 {% endfor %}36 </ul>37 {% endif %}38 </li>39 {% endfor %}40 </ul>41 </details>42 </nav>43 {% endif %}44
45 {{ page.content | safe }}46
47 {% if page.lower or page.higher %}48 <nav class="page-nav">49 {% if page.lower %}<a href="{{ page.lower.permalink }}">← {{ page.lower.title }}</a>{% endif %}50 {% if page.higher %}<a href="{{ page.higher.permalink }}">{{ page.higher.title }} →</a>{% endif %}51 </nav>52 {% endif %}53</article>54{% endblock %} v2
commit 0f8a8b3
message edit page.html via macOS
author anton
date Apr 19, 2026
size 1.4 KB