diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2026-01-02 13:53:56 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2026-01-02 16:21:05 +0200 |
| commit | 9ee2b0f19c4f50c10c18a0cc416d4981ed786af1 (patch) | |
| tree | bd821ef3fa82c64966273808797503975e0b8576 /templates | |
| parent | c1856d1f3edbc4b32be5860233dede88db16a7bb (diff) | |
Add projects
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/page.html | 25 | ||||
| -rw-r--r-- | templates/section_posts.html (renamed from templates/section.html) | 5 | ||||
| -rw-r--r-- | templates/section_projects.html | 5 |
3 files changed, 25 insertions, 10 deletions
diff --git a/templates/page.html b/templates/page.html index 7120590..786b800 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,21 +1,30 @@ -{% extends "base.html" %} -{% import "macros.html" as macros %} -{% block content %} +{% extends "base.html" %} {% import "macros.html" as macros %} {% block content +%} <h1> {{ page.title }}<br /> + {% if page.date %} <small>({{ page.date }})</small> + {% endif %} <small>[{{ page.extra.kind }}]</small> </h1> -{{ page.content | replace(from="<!-- toc -->", to=macros::toc(page=page)) | safe }} +{{ page.content | replace(from="<!-- toc -->", to=macros::toc(page=page)) | safe +}} <nav class="post-nav" aria-label="Post navigation"> {% if page.higher %} - <div class="post-nav-left"><a class="post-nav-link" href="{{ page.higher.permalink }}">← {{ page.higher.title }}</a></div> - {% endif %} - {% if page.lower %} - <div class="post-nav-right"><a class="post-nav-link" href="{{ page.lower.permalink }}">{{ page.lower.title }} →</a></div> + <div class="post-nav-left"> + <a class="post-nav-link" href="{{ page.higher.permalink }}" + >← {{ page.higher.title }}</a + > + </div> + {% endif %} {% if page.lower %} + <div class="post-nav-right"> + <a class="post-nav-link" href="{{ page.lower.permalink }}" + >{{ page.lower.title }} →</a + > + </div> {% endif %} </nav> diff --git a/templates/section.html b/templates/section_posts.html index b72f536..f44321f 100644 --- a/templates/section.html +++ b/templates/section_posts.html @@ -1,5 +1,6 @@ -{% extends "base.html" %} {% block content %} {% set posts = -get_section(path="posts/_index.md") %} +{% extends "base.html" %} +{% block content %} +{% set posts = get_section(path="posts/_index.md") %} <h1>{{ section.title }}</h1> <p> diff --git a/templates/section_projects.html b/templates/section_projects.html new file mode 100644 index 0000000..be0db07 --- /dev/null +++ b/templates/section_projects.html @@ -0,0 +1,5 @@ +{% extends "base.html" %} + +{% block content %} +{{ section.content | safe }} +{% endblock %} |
