diff options
| author | nikolaosboutalas <nikolaosboutalas@MACBOOKPRO-1B9E.station> | 2024-10-28 12:38:54 +0200 |
|---|---|---|
| committer | Nikolaos Boutalas <nikolaosboutalas@MACBOOKPRO-1B9E.station> | 2026-01-04 21:47:36 +0200 |
| commit | c755974cf6d153f4ae668765ae7c95348c3c60b6 (patch) | |
| tree | 93cb4b66c5461cc5ef1c2230cde622dd6f2ae57a | |
| parent | 2e387d897b0e3197cc4e989b181cbf609d2a60d3 (diff) | |
posts: add section
| -rw-r--r-- | content/_index.md | 1 | ||||
| -rw-r--r-- | content/posts/_index.md | 8 | ||||
| -rw-r--r-- | templates/posts-page.html | 4 | ||||
| -rw-r--r-- | templates/posts-section.html | 9 |
4 files changed, 22 insertions, 0 deletions
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 %} +<h1>{{ page.title }}</h1> +<p>{{ page.date }}</p> +{{ 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 %} +<h1>{{ section.title }}</h1> +<p>{{ section.content | safe }}</p> +<ul> + {% for page in section.pages %} + <li><a href="{{ page.permalink | safe }}">{{ page.title }}</a> ({{ page.date }})</li> + {% endfor %} +</ul> +{% endblock body %} |
