mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-29 14:48:55 +00:00
Use extends instead of embed
This commit is contained in:
parent
5062f43510
commit
2247dced96
2 changed files with 2 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
||||||
{% embed 'partials/base.html.twig' %}
|
{% extends 'partials/base.html.twig' %}
|
||||||
|
|
||||||
{% set collection = page.collection() %}
|
{% set collection = page.collection() %}
|
||||||
{% set base_url = page.url %}
|
{% set base_url = page.url %}
|
||||||
|
@ -59,5 +59,3 @@
|
||||||
{% include 'partials/sidebar_left.html.twig' %}
|
{% include 'partials/sidebar_left.html.twig' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% endembed %}
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% embed 'partials/base.html.twig' %}
|
{% extends 'partials/base.html.twig' %}
|
||||||
{% set base_url = page.parent.url %}
|
{% set base_url = page.parent.url %}
|
||||||
{% set feed_url = base_url %}
|
{% set feed_url = base_url %}
|
||||||
{% set show_breadcrumbs = header_var('show_breadcrumbs', [page, blog]) %}
|
{% set show_breadcrumbs = header_var('show_breadcrumbs', [page, blog]) %}
|
||||||
|
@ -27,5 +27,3 @@
|
||||||
{% include 'partials/footer.html.twig' %}
|
{% include 'partials/footer.html.twig' %}
|
||||||
</section>
|
</section>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% endembed %}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue