diff options
| author | Franck Cuny <59291+fcuny@users.noreply.github.com> | 2025-02-01 14:39:05 -0800 |
|---|---|---|
| committer | Franck Cuny <59291+fcuny@users.noreply.github.com> | 2025-02-01 14:39:05 -0800 |
| commit | c9a0ae57f6bbd2a51003acc878eaa6e17087cfa7 (patch) | |
| tree | 14daff3992ea177d617b4edb4dcf42ea87b9c874 /templates/index.html | |
| parent | formatting (diff) | |
| download | fcuny.net-c9a0ae57f6bbd2a51003acc878eaa6e17087cfa7.tar.gz | |
simplify even more!
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 -%} |
