61 lines
1.6 KiB
HTML
61 lines
1.6 KiB
HTML
{% extends "base.html" %}
|
||
|
||
{% block title %}{{ page.title }} – {{ SITENAME }}{% endblock %}
|
||
|
||
{% block html_metadata %}
|
||
{% if page.html_metadata %}
|
||
{% for meta in page.html_metadata %}
|
||
<meta name="{{ meta.name }}" content="{{ meta.content }}" />
|
||
{% endfor %}
|
||
{% endif %}
|
||
{% endblock html_metadata %}
|
||
|
||
{% block metadesc %}
|
||
{% if page.summary %}{{ page.summary | striptags | e }}{% else %}{{ super() }}{% endif %}
|
||
{% endblock %}
|
||
|
||
{% block content_all %}
|
||
<article>
|
||
|
||
{% block content_header %}
|
||
<header id="content-header">
|
||
<h1>{{ page.title }}</h1>
|
||
</header>
|
||
{% endblock content_header %}
|
||
|
||
{% block content_body %}
|
||
<div id="content-body">
|
||
<div class="body-column-text">
|
||
{{ page.content }}
|
||
</div>
|
||
<div class="body-column-image">
|
||
{% if page.featured_image %}
|
||
{% from 'includes/macros.html' import fi %}
|
||
{% set i = page.featured_image[0] %}
|
||
{{ fi(i.pic, i.link, i.text, i.alt, i.credit, i.credit_link) }}
|
||
{% endif %}
|
||
</div>
|
||
</div>
|
||
{% endblock content_body %}
|
||
|
||
{% block content_footer %}
|
||
{% if page.footer_line %}
|
||
<footer class="content-footer">
|
||
<p>{{ page.footer_line }}</p>
|
||
</footer>
|
||
{% elif page.footer_include %}
|
||
<footer class="content-footer">
|
||
{% include page.footer_include %}
|
||
</footer>
|
||
{% elif page.footer_includes %} {# plural #}
|
||
<footer class="content-footer">
|
||
{% for i in page.footer_includes %}
|
||
{% include i %}
|
||
{% if not loop.last %} <hr />{% endif %}
|
||
{% endfor %}
|
||
</footer>
|
||
{% endif %}
|
||
{% endblock content_footer %}
|
||
|
||
</article>
|
||
{% endblock content_all %} |