mirror of
https://github.com/typemill/typemill.git
synced 2025-08-12 00:54:52 +02:00
Version 1.3.7. Fix image attributes
This commit is contained in:
@@ -9,7 +9,11 @@ amount: 25
|
||||
|
||||
settings:
|
||||
landingpage: on
|
||||
landingpageIntro: on
|
||||
landingpageIntro: 1
|
||||
landingpageNavi: 2
|
||||
naviTitle: Get Started
|
||||
fontheadline: sans-serif
|
||||
fontnavi: sans-serif
|
||||
|
||||
forms:
|
||||
fields:
|
||||
@@ -107,7 +111,7 @@ forms:
|
||||
|
||||
landingpageNavi:
|
||||
type: fieldset
|
||||
legend: Landingpage Contrast Segment
|
||||
legend: Landingpage Navigation Segment
|
||||
fields:
|
||||
landingpageNavi:
|
||||
type: number
|
||||
@@ -203,6 +207,15 @@ forms:
|
||||
label: Text/label for edit link
|
||||
placeholder: edit on github
|
||||
|
||||
fieldsetChapters:
|
||||
type: fieldset
|
||||
legend: Navigations and Chapters
|
||||
fields:
|
||||
chapnum:
|
||||
type: checkbox
|
||||
label: Show Chapter Numbers
|
||||
checkboxlabel: Count chapters in navigation?
|
||||
|
||||
fieldsetfooter:
|
||||
type: fieldset
|
||||
legend: Footer columns
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{% macro loop_over(navigation) %}
|
||||
{% macro loop_over(navigation,chapnum) %}
|
||||
|
||||
{% import _self as macros %}
|
||||
|
||||
@@ -15,14 +15,14 @@
|
||||
{% endif %}
|
||||
|
||||
{% if (element.elementType == 'folder') %}
|
||||
<a class="link dib w-100 relative fw9 pv2 pr2 indent-l-{{depth}} margin-bottom-1 arrow-after hover-bg-primary f-primary hover-f-secondary" href="{{ element.urlAbs }}">{{ element.name }}</a>
|
||||
<a class="link dib w-100 relative fw9 pv2 pr2 indent-l-{{depth}} margin-bottom-1 arrow-after hover-bg-primary f-primary hover-f-secondary" href="{{ element.urlAbs }}">{% if chapnum %}{{ element.chapter }}. {% endif %}{{ element.name }}</a>
|
||||
{% if (element.folderContent|length > 0) and (element.contains == 'pages') %}
|
||||
<ul class="list pa0">
|
||||
{{ macros.loop_over(element.folderContent) }}
|
||||
{{ macros.loop_over(element.folderContent, chapnum) }}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<a class="link dib w-100 relative fw3 pv2 pr2 indent-l-{{depth}} margin-bottom-1 arrow-after hover-bg-primary f-primary hover-f-secondary" href="{{ element.urlAbs }}">{{ element.name }}</a>
|
||||
<a class="link dib w-100 relative fw3 pv2 pr2 indent-l-{{depth}} margin-bottom-1 arrow-after hover-bg-primary f-primary hover-f-secondary" href="{{ element.urlAbs }}">{% if chapnum %}{{ element.chapter }} {% endif %}{{ element.name }}</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
@@ -30,6 +30,6 @@
|
||||
|
||||
{% import _self as macros %}
|
||||
|
||||
<ul class="list pa0 menu {{ settings.themes.cyanine.fontnavi}}">
|
||||
{{ macros.loop_over(navigation) }}
|
||||
<ul class="list pa0 menu {{ settings.themes.cyanine.fontnavi }}">
|
||||
{{ macros.loop_over(navigation, settings.themes.cyanine.chapnum ) }}
|
||||
</ul>
|
Reference in New Issue
Block a user