diff options
| author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2026-02-02 21:10:12 +0530 |
|---|---|---|
| committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2026-02-02 21:10:12 +0530 |
| commit | d245c05825743e20d2df2900c4f8313d82ebcfe1 (patch) | |
| tree | b82ce18e8b9d2ff3d6c32f152b6d799d27eb4ffa /templates/posts.html | |
first commit
Diffstat (limited to 'templates/posts.html')
| -rw-r--r-- | templates/posts.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/templates/posts.html b/templates/posts.html new file mode 100644 index 0000000..c62e299 --- /dev/null +++ b/templates/posts.html @@ -0,0 +1,35 @@ +{% import "macros/header.html" as header %} +{% import "macros/date.html" as date %} + +{% extends "base.html" %} + +{% block title %}Index - {{ config.title }}{% endblock title %} +{% block description %}All posts on {{ config.title }}.{% endblock description %} + +{% block og_title %}Index - {{ config.title }}{% endblock og_title %} +{% block og_description %}All posts on {{ config.title }}{% endblock og_description %} + +{% block header %} +{{ header::site_header(activePage="/posts") }} +{% endblock header %} + +{% block main %} +<article> + {{ section.content | safe }} + + <ol id="post-index" reversed> + {% for post in section.pages %} + <li> + <a href="{{ post.path | safe }}"> + <time datetime="{{ post.date }}"> + <em>{{ date::format_date(date=post.date) }}</em> + </time> + <span> + {{ post.title }} + <span> + </a> + </li> + {% endfor %} + </ol> +</article> +{% endblock main %} |