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/blogpost.html.j2 |
initial commit
Diffstat (limited to 'templates/blogpost.html.j2')
-rw-r--r-- | templates/blogpost.html.j2 | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/templates/blogpost.html.j2 b/templates/blogpost.html.j2 new file mode 100644 index 0000000..7375ee4 --- /dev/null +++ b/templates/blogpost.html.j2 @@ -0,0 +1,30 @@ +{% extends "base.html.j2" %} +{% block page_title %}{{ post.title() }} {{ super() }}{% endblock %} +{% block page_title_short %}{{ post.title() }}{% endblock %} +{% block content %} +<h1 class="first-element">{{ post.title() }}</h1> +<p>{{ post.get_prompt("ls tags/") }} +<br> +{{ post.get_tags() }}</p> +<hr> +<p>{{ post.get_prompt("stat -c %.10w content") }} +<br> +{{ post.get_publish_time() }}</p> +<hr> +<p>{{ post.get_cat_prompt("content") }}</p> +<div class="blog-content-spacer"></div> +{{ post.html|safe }} +<hr> +<p>{{ post.get_prompt("find other_posts/ -type f -exec head {} +") }}</p> +{% for similar in post.get_similar_posts() %} +<a href="{{ similar.href }}" class="other_post dont-bother posts-listing-link {% if loop.last %}last-element{% endif%}"> +<div> +<h3>{{ similar.title() }}</h3> +<p>{{ similar.intro }}</p> +</div> +<div> +<img src="{{ similar.thumbnail }}" /> +</div> +</a> +{% endfor %} +{% endblock %} |