1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-04 21:27:41 +02:00

version 1.6.0 footnotes and search

This commit is contained in:
trendschau
2019-10-20 11:59:42 +02:00
parent 0f35b698d0
commit 83f1ac6daf
3 changed files with 7 additions and 7 deletions

2
cache/lastCache.txt vendored
View File

@@ -1 +1 @@
1571553470
1571554673

View File

@@ -21,7 +21,7 @@
<ul>
{% for element in item.folderContent %}
<li class="level-2"><a href="{{ element.urlAbs }}">{{ element.name }}</a></li>
<li class="level-2"><a href="{{ element.urlAbs }}">{% if settings.themes.typemill.chapnum %}{{ element.chapter }} {% endif %}{{ element.name }}</a></li>
{% endfor %}
</ul>

View File

@@ -1,4 +1,4 @@
{% macro loop_over(navigation) %}
{% macro loop_over(navigation,chapnum) %}
{% import _self as macros %}
@@ -11,12 +11,12 @@
<li class="{{ element.elementType }} level-{{ element.keyPathArray|length }}">
{% endif %}
{% if element.elementType == 'folder' and element.keyPathArray|length == 1 %}
<a href="{{ element.urlAbs }}">{{ element.name }}</a>
<a href="{{ element.urlAbs }}">{% if chapnum %}{{ element.chapter }}. {% endif %}{{ element.name }}</a>
<ul>
{{ macros.loop_over(element.folderContent) }}
{{ macros.loop_over(element.folderContent,chapnum) }}
</ul>
{% else %}
<a href="{{ element.urlAbs }}">{{ element.name }}</a>
<a href="{{ element.urlAbs }}">{% if chapnum %}{{ element.chapter }} {% endif %}{{ element.name }}</a>
{% endif %}
</li>
{% endfor %}
@@ -25,5 +25,5 @@
{% import _self as macros %}
<ul>
{{ macros.loop_over(navigation) }}
{{ macros.loop_over(navigation,settings.themes.typemill.chapnum) }}
</ul>