aboutsummaryrefslogtreecommitdiff
path: root/src/koszko_org_website/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/koszko_org_website/templates')
-rw-r--r--src/koszko_org_website/templates/en/koszko.html.jinja6
-rw-r--r--src/koszko_org_website/templates/koszko.html.jinja11
-rw-r--r--src/koszko_org_website/templates/pl/koszko.html.jinja6
3 files changed, 23 insertions, 0 deletions
diff --git a/src/koszko_org_website/templates/en/koszko.html.jinja b/src/koszko_org_website/templates/en/koszko.html.jinja
index ecf94dc..b6ce215 100644
--- a/src/koszko_org_website/templates/en/koszko.html.jinja
+++ b/src/koszko_org_website/templates/en/koszko.html.jinja
@@ -153,4 +153,10 @@ Copyright (C) 2021,2022 Wojtek Kosior <koszko@koszko.org>
{{ request_table() }}
{% endcall %}
+
+ {% call section('posts') %}
+ {{ header(2, 'Posts') }}
+
+ {{ posts() }}
+ {% endcall %}
{% endblock %}
diff --git a/src/koszko_org_website/templates/koszko.html.jinja b/src/koszko_org_website/templates/koszko.html.jinja
index 4253329..14b5bd5 100644
--- a/src/koszko_org_website/templates/koszko.html.jinja
+++ b/src/koszko_org_website/templates/koszko.html.jinja
@@ -64,3 +64,14 @@ Copyright (C) 2021,2022 Wojtek Kosior <koszko@koszko.org>
</tbody>
</table>
{% endmacro %}
+
+{% macro posts() %}
+ {% call unordered_list() %}
+ {% for post_data in get_posts(lang_short) %}
+ {% call list_entry() %}
+ {{ link(same_lang_url(post_data.page_path), post_data.title) }}
+ {{ italic('(' ~ post_data.date ~ ')') }}
+ {% endcall %}
+ {% endfor %}
+ {% endcall %}
+{% endmacro %}
diff --git a/src/koszko_org_website/templates/pl/koszko.html.jinja b/src/koszko_org_website/templates/pl/koszko.html.jinja
index 7828c4a..6dae783 100644
--- a/src/koszko_org_website/templates/pl/koszko.html.jinja
+++ b/src/koszko_org_website/templates/pl/koszko.html.jinja
@@ -159,4 +159,10 @@ Copyright (C) 2021,2022 Wojtek Kosior <koszko@koszko.org>
{{ request_table() }}
{% endcall %}
+
+ {% call section('posts') %}
+ {{ header(2, 'Posty') }}
+
+ {{ posts() }}
+ {% endcall %}
{% endblock %}