kasperhermansen-blog/templates/page.html

41 lines
1.0 KiB
HTML
Raw Normal View History

2023-04-02 16:42:13 +02:00
{% extends "base.html" %}
2023-04-11 16:20:30 +02:00
{% block extra_head %}
<link rel="canonical" href="{{ page.permalink }}">
{% endblock extra_head %}
2023-04-02 16:42:13 +02:00
{% block content %}
<div class="mx-auto px-4 max-w-3xl py-8">
2023-04-03 02:49:17 +02:00
<div class="py-2">
{{ prev_macros::page_back_link(page=page) }}
</div>
2023-04-02 16:42:13 +02:00
<article class="blog-content">
<h1 class="title">
{{ page.title }}
</h1>
2023-04-09 12:27:51 +02:00
<a href="https://github.com/kjuulh" target="_blank" rel="noopener noreferrer" class="text-peach hover:text-orange-400">
@kjuulh
</a>
2023-04-02 16:42:13 +02:00
<p class="subtitle"><strong>{{ page.date }}</strong></p>
{{ page.content | safe }}
</article>
{% if page.lower or page.higher %}
<div class="flex place-content-around max-w-lg mx-auto">
{% if page.lower %}
<a class="previous" href="{{ page.lower.permalink }}"> {{ page.lower.title }}</a>
{% endif %}
{% if page.higher %}
<a class="next" href="{{ page.higher.permalink }}">{{ page.higher.title }} </a>
{% endif %}
</div>
{% endif %}
</div>
{% endblock content %}