summaryrefslogtreecommitdiff
path: root/templates/blogpost.html.j2
blob: 7375ee4cb4d2bce27a733adb61b99b38cf8f209f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 %}