diff options
Diffstat (limited to 'templates/index.html')
| -rw-r--r-- | templates/index.html | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/templates/index.html b/templates/index.html index cf83d26..bb5a86c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,14 +1,7 @@ -{% extends "base.html" %} {%- block content -%} {% if section.content %} {{ section.content | safe }} {% endif %} +{% extends "base.html" %} -<hr /> +{%- block content -%} -{%- for post in section.pages | sort(attribute="date", reverse=false) -%} -<section> - <ul class="post-list"> - <li> - <a href="{{- post.path|safe -}}">{{- post.title -}}</a> - <span class="post-date">{{ post.date | date(format="%d %h %Y")}}</span> - </li> - </ul> -</section> -{%- endfor -%} {%- endblock content -%} +{% if section.content %} {{ section.content | safe }}{% endif %} + +{%- endblock content -%} |
