diff options
Diffstat (limited to 'templates/section.html')
-rw-r--r-- | templates/section.html | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/templates/section.html b/templates/section.html new file mode 100644 index 0000000..b65fdf1 --- /dev/null +++ b/templates/section.html @@ -0,0 +1,44 @@ +{% extends "base.html" %} +{% block content %} +<h1>{{ section.title }}</h1> + +{{ section.description }} + +<section class="post-list"> + {% for post in section.pages | reverse %} + <article class="post"> + <header class="post-header"> + <div class="post-meta"> + {{ post.date }} + {% if post.taxonomies["tags"] | length > 0 %} + <ul class="post-tags"> + {% for tag in post.taxonomies["tags"] %} + <li class="tag">{{ tag }}</li> + {% endfor %} + </ul> + {% endif %} + </div> + <h1 class="post-title"> + <a href="{{ post.permalink | safe }}"> + {{ post.title }} + </a> + </h1> + </header> + <section class="post-summary"> + {% if post.summary %} + {{ post.summary | safe }} + {% else %} + {{ post.content | safe }} + {% endif %} + </section> + <footer> + {% if post.summary %} + <a href="{{ post.permalink }}"> + {{ trans(key="moreprompt", lang=post.lang) }} + </a> + {% endif %} + </footer> + </article> + {% endfor %} +</section> +{% endblock content %} |