mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-07 20:08:54 +00:00
Fixed blog_page
variable in blog templates
This commit is contained in:
parent
e68390cc0c
commit
5799c62ac3
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
{% extends 'partials/base.html.twig' %}
|
{% extends 'partials/base.html.twig' %}
|
||||||
|
|
||||||
{% set collection = page.collection() %}
|
{% set collection = page.collection() %}
|
||||||
{% set blog = page.find(header_var('blog_url')|defined(theme_var('blog-page'))) %}
|
{% set blog = page.find(header_var('blog_url')|defined(theme_var('blog_page'))) %}
|
||||||
{% set show_breadcrumbs = header_var('show_breadcrumbs')|defined(true) %}
|
{% set show_breadcrumbs = header_var('show_breadcrumbs')|defined(true) %}
|
||||||
{% set show_pagination = header_var('show_pagination')|defined(true) %}
|
{% set show_pagination = header_var('show_pagination')|defined(true) %}
|
||||||
|
|
||||||
|
@ -43,6 +43,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</article>
|
</article>
|
||||||
{% for child in collection %}
|
{% for child in collection %}
|
||||||
|
{% set datestamp = include('partials/page-bits/date.html.twig', { 'page': child }) %}
|
||||||
{% include 'partials/blog_item.html.twig' with {blog: page, page:child, 'title': child.title|raw, 'subtitle': child.header.subtitle|raw, 'listing': true, 'truncate':true} %}
|
{% include 'partials/blog_item.html.twig' with {blog: page, page:child, 'title': child.title|raw, 'subtitle': child.header.subtitle|raw, 'listing': true, 'truncate':true} %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue