diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 4 | ||||
-rw-r--r-- | layouts/partials/next-prev-page.html | 15 |
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> + |