mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
This makes us more flexible and gives us ways to avoid title collisions (e.g. when the title on an extra post is a substring of some post title).
26 lines
703 B
HTML
26 lines
703 B
HTML
{% extends "base.html" %}
|
|
|
|
{% import "snippets.html" as snippets %}
|
|
|
|
{% block title %}{{ page.title }} | {{ config.title }}{% endblock title %}
|
|
|
|
{% block main %}
|
|
<h1>{{ page.title }}</h1>
|
|
<time datetime="{{ page.date | date(format="%Y-%m-%d") }}" class="post-date">
|
|
{{ page.date | date(format="%b %d, %Y") }}
|
|
{% if page.extra.updated %} (updated on {{ page.extra.updated | date(format="%b %d, %Y") }}) {% endif %}
|
|
</time>
|
|
{{ page.content | safe }}
|
|
{% endblock main %}
|
|
|
|
{% block after_main %}
|
|
<hr>
|
|
<section>
|
|
<h2 id="comments">Comments</h2>
|
|
{{ snippets::giscus(search_term=page.title ~ " (News Post)") }}
|
|
</section>
|
|
|
|
{% endblock after_main %}
|
|
|
|
|