34 lines
901 B
Twig
34 lines
901 B
Twig
|
{% embed 'partials/base.html.twig' %}
|
||
|
|
||
|
{% set collection = page.collection() %}
|
||
|
{% set base_url = page.url %}
|
||
|
{% set feed_url = base_url %}
|
||
|
|
||
|
{% if base_url == '/' %}
|
||
|
{% set base_url = '' %}
|
||
|
{% endif %}
|
||
|
|
||
|
{% if base_url == base_url_relative %}
|
||
|
{% set feed_url = base_url~'/'~page.slug %}
|
||
|
{% endif %}
|
||
|
|
||
|
{% block content %}
|
||
|
|
||
|
{{ page.content|raw }}
|
||
|
{% include 'partials/blog_sidebar_header.html.twig' %}
|
||
|
|
||
|
{% for child in collection %}
|
||
|
{% include 'partials/blog_item.html.twig' with {'page':child, 'truncate':true} %}
|
||
|
{% endfor %}
|
||
|
|
||
|
{% if config.plugins.pagination.enabled and collection.params.pagination %}
|
||
|
{% include 'pagination.html.twig' with {'pagination':collection.params.pagination} %}
|
||
|
{% endif %}
|
||
|
|
||
|
{% include 'partials/blog_sidebar_footer.html.twig' %}
|
||
|
{% endblock %}
|
||
|
|
||
|
{% endembed %}
|
||
|
|
||
|
|