mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-28 14:18:53 +00:00
45 lines
1.1 KiB
Twig
45 lines
1.1 KiB
Twig
{% extends 'partials/base.html.twig' %}
|
|
|
|
{% if page.header.show_breadcrumbs is defined %}
|
|
{% set show_breadcrumbs = page.header.show_breadcrumbs %}
|
|
{% else %}
|
|
{% set show_breadcrumbs = true %}
|
|
{% endif %}
|
|
|
|
{% block menu %}
|
|
{% include 'partials/sidebar_right.html.twig' %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
|
|
{% include 'partials/breadcrumbs.html.twig' %}
|
|
{% endif %}
|
|
|
|
<article class="post">
|
|
<header>
|
|
<div class="title">
|
|
<h2>{{ page.header.title }}</h2>
|
|
{% if page.header.subtitle %}
|
|
<p>{{ page.header.subtitle }}</p>
|
|
{% endif %}
|
|
</div>
|
|
</header>
|
|
{{ page.content|raw}}
|
|
|
|
<table>
|
|
{% for file in page.media.files %}
|
|
{% for type in page.header.file_types %}
|
|
{% if file.extension == type.extension or type.extension == '*' %}
|
|
<tr>
|
|
{% include 'partials/download_item.html.twig' with {file: file} %}
|
|
</tr>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</table>
|
|
</article>
|
|
|
|
<section id="footer" class="align-center">
|
|
{% include 'partials/footer.html.twig' %}
|
|
</section>
|
|
{% endblock %}
|