diff options
author | Botond Hende <nettingman@gmail.com> | 2024-09-04 20:05:51 +0200 |
---|---|---|
committer | Botond Hende <nettingman@gmail.com> | 2024-09-04 20:05:51 +0200 |
commit | bea80928f694671010bc99493d31879df7d42836 (patch) | |
tree | afb71282df8f01ce4b2dd87a292febe7ad8e3537 /templates/index.html.j2 |
initial commit
Diffstat (limited to 'templates/index.html.j2')
-rw-r--r-- | templates/index.html.j2 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/index.html.j2 b/templates/index.html.j2 new file mode 100644 index 0000000..09ce8ad --- /dev/null +++ b/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 %} |