neues theme: add blueprints.yaml
This commit is contained in:
parent
dfce776de6
commit
ce368f24d2
|
@ -51,21 +51,9 @@
|
|||
{% if not (grav.uri.param('chromeless') or grav.uri.param('embedded') or grav.uri.param('standalone')) and not(theme_var('chromeless.enabled')) and not (grav.uri.param('summaryonly') or grav.uri.param('onlysummary')) %}
|
||||
|
||||
{% set currentPage = page %}
|
||||
{% set allPages = [] %}
|
||||
{% set currentPageIndex = 0 %}
|
||||
{% for child in pages.children %}
|
||||
{% set subPages = child.children %}
|
||||
{% for subPage in subPages %}
|
||||
{% set allPages = allPages|merge([subPage]) %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
{% set allPages = allPages|sort(modified, 'desc') %}
|
||||
{% for i, page in allPages %}
|
||||
{% if page.url == currentPage.url %}
|
||||
{% set currentPageIndex = i %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% set allPages = pages.children %}
|
||||
{% set allPages = allPages|sort(date, 'desc') %}
|
||||
{% set currentPageIndex = allPages.index(currentPage) %}
|
||||
|
||||
<p class="prev-next text-center">
|
||||
{% if currentPageIndex > 0 %}
|
||||
|
|
Loading…
Reference in New Issue