remoteroastclub/templates/page.html
2023-08-01 12:13:54 +02:00

53 lines
1.7 KiB
HTML

{% extends "index.html" %}
{% block title %}{{ config.title}} - {{ page.title }}{% endblock title %}
{% block ogtitle %}{{ config.title}} - {{ page.title }}{% endblock ogtitle %}
{% block ogdesc %}{{ page.description }}{% endblock ogdesc %}
{% block ogurl %}{% if page.slug %}{{ config.base_url }}/{{ page.slug }}{% endif %}{% endblock ogurl %}
{% block ogimg %}{% if page.extra.image %}{{ page.extra.image }}{% endif %}{% endblock ogimg %}
{% block breadcrumb %}
<p class="lead">
<span>&gt;&gt;</span>
<a href="{{ config.base_url }}">Home</a>
{% if page.taxonomies %}
<span class="divider">/</span>
{% if page.taxonomies.categories %}
<a class="category" href="{{ get_taxonomy_url(kind="categories", name=page.taxonomies.categories[0]) }}">{{ page.taxonomies.categories[0] }}</a>
{% endif %}
{% if page.taxonomies.tags %}
<span class="divider">/</span>
{% for tag in page.taxonomies.tags %}
<a href="{{ get_taxonomy_url(kind="tags", name=tag) }}">{{ tag }}</a>{% if page.taxonomies.tags | length > 1 %}{% if loop.index != page.taxonomies.tags | length %},{% endif %}{% endif %}
{% endfor %}
{% endif %}
{% endif %}
</p>
{% endblock breadcrumb %}
{% block header %}
<h1>{{ page.title }}</h1>
{% endblock header %}
{% block meta %}
<p class="text-right">
<span class="label label-success">
&becaus;
{% if page.extra.author %}
{{ page.extra.author }}
{% else %}
{{ config.extra.author }}
{% endif %}
</span>
<span class="label label-success">&there4; {{ page.date }}</span>
<span class="label label-success">&infin; {{ page.reading_time }}'</span>
</p>
{% endblock meta %}
{% block main %}
{{ page.content | safe }}
{% endblock main %}
{% block pagelist %}
{% endblock pagelist %}