From c755974cf6d153f4ae668765ae7c95348c3c60b6 Mon Sep 17 00:00:00 2001 From: nikolaosboutalas Date: Mon, 28 Oct 2024 12:38:54 +0200 Subject: posts: add section --- content/_index.md | 1 + content/posts/_index.md | 8 ++++++++ templates/posts-page.html | 4 ++++ templates/posts-section.html | 9 +++++++++ 4 files changed, 22 insertions(+) create mode 100644 content/posts/_index.md create mode 100644 templates/posts-page.html create mode 100644 templates/posts-section.html diff --git a/content/_index.md b/content/_index.md index 053f290..a92549e 100644 --- a/content/_index.md +++ b/content/_index.md @@ -4,5 +4,6 @@ title = "Boutalas" # Links +- [Posts](posts/) - [Repositories](git/) - [File dump](files/) diff --git a/content/posts/_index.md b/content/posts/_index.md new file mode 100644 index 0000000..34b0f21 --- /dev/null +++ b/content/posts/_index.md @@ -0,0 +1,8 @@ ++++ +title="Posts" +sort_by = "date" +template = "posts-section.html" +page_template = "posts-page.html" ++++ + +Software (probably) related thoughts. Will try to keep them updated... diff --git a/templates/posts-page.html b/templates/posts-page.html new file mode 100644 index 0000000..a3b0b8a --- /dev/null +++ b/templates/posts-page.html @@ -0,0 +1,4 @@ +{% extends "base.html" %} {% block body %} +

{{ page.title }}

+

{{ page.date }}

+{{ page.content | safe }} {% endblock body %} diff --git a/templates/posts-section.html b/templates/posts-section.html new file mode 100644 index 0000000..77e8c3b --- /dev/null +++ b/templates/posts-section.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} {% block body %} +

{{ section.title }}

+

{{ section.content | safe }}

+ +{% endblock body %} -- cgit v1.2.3