summaryrefslogtreecommitdiff
path: root/templates/blogpost.html.j2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/blogpost.html.j2')
-rw-r--r--templates/blogpost.html.j230
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 %}