summaryrefslogtreecommitdiff
path: root/blog/templates/index.html.j2
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2025-12-17 23:31:39 +0100
committerBotond Hende <nettingman@gmail.com>2025-12-17 23:31:39 +0100
commitd8995902414f2d2689b0bbdc6651730b1fe9bd31 (patch)
treeef441bbc46ec5249b48de4286483d83d5c668ce7 /blog/templates/index.html.j2
parentb687ada7e80591e8d9e3da6690fc1c24aa0bdf21 (diff)
moved blog generation to separate folder
Diffstat (limited to 'blog/templates/index.html.j2')
-rw-r--r--blog/templates/index.html.j218
1 files changed, 18 insertions, 0 deletions
diff --git a/blog/templates/index.html.j2 b/blog/templates/index.html.j2
new file mode 100644
index 0000000..09ce8ad
--- /dev/null
+++ b/blog/templates/index.html.j2
@@ -0,0 +1,18 @@
+{% extends "base.html.j2" %}
+{% block content %}
+{% for post in posts %}
+{% if loop.first %}
+<p class="first-element">{{ post.get_index_prompt() }}</p>
+{% else %}
+<p>{{ post.get_index_prompt() }}</p>
+{% endif %}
+<a class="posts-listing-link dont-bother" href="{{ post.href }}">
+ <img src="{{ post.thumbnail }}" />
+ <h2 class="index-title">{{ post.title() }}</h2>
+ <p>{{ post.intro }}</p>
+</a>
+{% if not loop.last %}
+<hr>
+{% endif %}
+{% endfor %}
+{% endblock %}