From 9ee2b0f19c4f50c10c18a0cc416d4981ed786af1 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 2 Jan 2026 13:53:56 +0200 Subject: Add projects --- templates/page.html | 25 +++++++++++++++++-------- templates/section.html | 18 ------------------ templates/section_posts.html | 19 +++++++++++++++++++ templates/section_projects.html | 5 +++++ 4 files changed, 41 insertions(+), 26 deletions(-) delete mode 100644 templates/section.html create mode 100644 templates/section_posts.html create mode 100644 templates/section_projects.html (limited to 'templates') 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 +%}

{{ page.title }}
+ {% if page.date %} ({{ page.date }}) + {% endif %} [{{ page.extra.kind }}]

-{{ page.content | replace(from="", to=macros::toc(page=page)) | safe }} +{{ page.content | replace(from="", to=macros::toc(page=page)) | safe +}} diff --git a/templates/section.html b/templates/section.html deleted file mode 100644 index b72f536..0000000 --- a/templates/section.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends "base.html" %} {% block content %} {% set posts = -get_section(path="posts/_index.md") %} - -

{{ section.title }}

-

- Follow via Atom/RSS (Huh?) -

- diff --git a/templates/section_posts.html b/templates/section_posts.html new file mode 100644 index 0000000..f44321f --- /dev/null +++ b/templates/section_posts.html @@ -0,0 +1,19 @@ +{% extends "base.html" %} +{% block content %} +{% set posts = get_section(path="posts/_index.md") %} + +

{{ section.title }}

+

+ Follow via Atom/RSS (Huh?) +

+ 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 %} -- cgit v1.3