Echo Writes Code

post.tera.html

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
{% extends "_base.tera.html" %}

{% block title %}{{ post.name }}{% endblock %}

{% block content %}
<h1>{{ post.name }}</h1>
<p class="timestamp">
  Originally published on <time datetime="{{ post.published }}">{{ post.published }}</time> // Last updated on <time datetime="{{ post.updated }}">{{ post.updated }}</time>
</p>
{{ post.content | safe }}
<hr>
<aside id="suggested-posts" class="multicolumn">
  <div class="multicolumn-block">
    <h5>Latest Posts</h5>
    {% for post in site.latest_posts %}
      <p><a href="{{ post.link }}">{{ post.name }}</a> in <a href="{{ post.list_link }}">{{ post.list_name }}</a></p>
    {% endfor %}
  </div>
  <div class="multicolumn-block">
    <h5>Random Posts</h5>
    {% for post in site.random_posts %}
      <p><a href="{{ post.link }}">{{ post.name }}</a> in <a href="{{ post.list_link }}">{{ post.list_name }}</a></p>
    {% endfor %}
  </div>
</aside>
{% endblock %}