summaryrefslogtreecommitdiffstats
path: root/templates/section.html
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-06-06 17:26:51 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-06-06 17:26:51 +0200
commit1383fee0f3ee632110259218a20fbf5446814fd2 (patch)
tree3482a1618cbbe74f4a068591b4a9722b5ed1d956 /templates/section.html
parent6ba2af3d6b477e775dfbeaf8ed0f03d9d7648e32 (diff)
downloadrabalderz-1383fee0f3ee632110259218a20fbf5446814fd2.tar.gz
rabalderz-1383fee0f3ee632110259218a20fbf5446814fd2.tar.bz2
rabalderz-1383fee0f3ee632110259218a20fbf5446814fd2.zip
Refactor post headers to separate template.
Diffstat (limited to 'templates/section.html')
-rw-r--r--templates/section.html18
1 files changed, 1 insertions, 17 deletions
diff --git a/templates/section.html b/templates/section.html
index b65fdf1..fed7472 100644
--- a/templates/section.html
+++ b/templates/section.html
@@ -7,23 +7,7 @@
<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>
+ {% include "posts/header.html" %}
<section class="post-summary">
{% if post.summary %}
{{ post.summary | safe }}