54 lines
1.7 KiB
HTML
54 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>>></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">
|
||
|
∵
|
||
|
{% if page.extra.author %}
|
||
|
{{ page.extra.author }}
|
||
|
{% else %}
|
||
|
{{ config.extra.author }}
|
||
|
{% endif %}
|
||
|
</span>
|
||
|
<span class="label label-success">∴ {{ page.date }}</span>
|
||
|
<span class="label label-success">∞ {{ page.reading_time }}'</span>
|
||
|
</p>
|
||
|
{% endblock meta %}
|
||
|
|
||
|
{% block main %}
|
||
|
{{ page.content | safe }}
|
||
|
{% endblock main %}
|
||
|
{% block pagelist %}
|
||
|
{% endblock pagelist %}
|