Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vantagedesign/ace-documentation.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian <julian@vantage-design.com>2020-05-11 22:45:13 +0300
committerJulian <julian@vantage-design.com>2020-05-11 22:45:13 +0300
commitfef8d9978c2418740faab19e7a34951068ac4838 (patch)
treef0b853e82384517d010260ea7b9cb921fbfd2823 /layouts
parente71324bba7b85db0a617468fff9112a29f0a72ba (diff)
Allow disabling read more nav and extended config docs
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html4
-rw-r--r--layouts/partials/next-prev-page.html15
2 files changed, 9 insertions, 10 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 1b905af..6db8cae 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -24,11 +24,11 @@
{{- block "main" . }}{{- end }}
<div class="row">
-
+ {{- if and (ne .Site.Params.disableReadmoreNav true) (ne .Params.disableReadmoreNav true) -}}
<div class="position-relative mx-auto col-lg-9">
{{ partial "next-prev-page.html" . }}
</div>
-
+ {{- end -}}
</div> <!-- /end of row -->
</div>
diff --git a/layouts/partials/next-prev-page.html b/layouts/partials/next-prev-page.html
index 5a84b3a..ae0f548 100644
--- a/layouts/partials/next-prev-page.html
+++ b/layouts/partials/next-prev-page.html
@@ -36,13 +36,12 @@
{{- end -}}
<div class="d-flex justify-content-center">
- {{- if not $.Site.Params.disableNavChevron -}}
- {{- with ($.Scratch.Get "prevPage") -}}
- <a class="p-1 mr-3 d-inline-block text-white" href="{{.RelPermalink}}" title="{{.Title}}"><i class="fas fa-chevron-left p-1"></i>{{.Title}}</a>
- {{ end -}}
- {{- with ($.Scratch.Get "nextPage") -}}
- <a class="p-1 ml-3 d-inline-block text-white text-right" href="{{.RelPermalink}}" title="{{.Title}}">{{.Title}}<i class="fas fa-chevron-right p-1"></i></a>
- {{- end }}
- {{- end -}}
+ {{- with ($.Scratch.Get "prevPage") -}}
+ <a class="p-1 mr-3 d-inline-block text-white" href="{{.RelPermalink}}" title="{{.Title}}"><i class="fas fa-chevron-left p-1"></i>{{.Title}}</a>
+ {{ end -}}
+ {{- with ($.Scratch.Get "nextPage") -}}
+ <a class="p-1 ml-3 d-inline-block text-white text-right" href="{{.RelPermalink}}" title="{{.Title}}">{{.Title}}<i class="fas fa-chevron-right p-1"></i></a>
+ {{- end }}
</div>
</div>
+