summaryrefslogtreecommitdiff
path: root/templates/section.html
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-08-01 23:56:19 -0500
committerChristian Cleberg <[email protected]>2026-08-01 23:56:19 -0500
commitc03e38b07ce439f9e6f4d23cb470193393e840e2 (patch)
tree356657ff9396912e1c8bfb36f8c0d4afe283b152 /templates/section.html
parent65f7a9607a60adbcb33ce4227f96980345006d5e (diff)
downloadkrz.sh-c03e38b07ce439f9e6f4d23cb470193393e840e2.tar.gz
krz.sh-c03e38b07ce439f9e6f4d23cb470193393e840e2.tar.bz2
krz.sh-c03e38b07ce439f9e6f4d23cb470193393e840e2.zip
initial commit
Diffstat (limited to 'templates/section.html')
-rw-r--r--templates/section.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/section.html b/templates/section.html
new file mode 100644
index 0000000..c3a9489
--- /dev/null
+++ b/templates/section.html
@@ -0,0 +1,29 @@
+{% extends "base.html" %}
+
+{% block title %}{{ section.title | lower }} &middot; {{ config.title }}{% endblock title %}
+{% block description %}{{ section.description | default(value=config.description) }}{% endblock description %}
+
+{% block content %}
+<article class="prose">
+ <h1 class="page-label">{{ section.title }}</h1>
+ {{ section.content | safe }}
+</article>
+
+{% if section.pages %}
+<ul class="plainlist">
+ {% for page in section.pages %}
+ <li>
+ <span class="pl-main">
+ <span class="pl-name">{{ page.title }}</span>
+ {% if page.description %}<span class="pl-desc">— {{ page.description }}</span>{% endif %}
+ </span>
+ <span class="pl-links">
+ {% if page.extra.appstore %}<a class="pl-link" href="{{ page.extra.appstore }}">app store &rarr;</a>
+ {% else %}<span class="pl-link pl-link-off" aria-disabled="true">app store — soon</span>{% endif %}
+ {% if page.extra.link %}<a class="pl-link" href="{{ page.extra.link }}">{{ page.extra.link_label | default(value="source") | lower }} &rarr;</a>{% endif %}
+ </span>
+ </li>
+ {% endfor %}
+</ul>
+{% endif %}
+{% endblock content %}