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

github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/body-article-content.html')
-rw-r--r--layouts/partials/body-article-content.html16
1 files changed, 14 insertions, 2 deletions
diff --git a/layouts/partials/body-article-content.html b/layouts/partials/body-article-content.html
index 0eedee2..f4d9698 100644
--- a/layouts/partials/body-article-content.html
+++ b/layouts/partials/body-article-content.html
@@ -20,6 +20,7 @@
{{ $isSubPage := .Params.subpage }}
{{ $subpages := (where (where (where .Sections.ByWeight "Params.subpage" true) "Params.hidden" "ne" true ) "Kind" "section")}}
{{ $pages := (where (where .CurrentSection.Pages.ByWeight "Kind" "page") "Params.hidden" "ne" true ) }}
+
{{if $isSubPage }}
<h1>{{.Parent.Title}}<span>{{$pagetitle}}</span></h1>
@@ -40,7 +41,7 @@
{{ if gt (len $elements) 0}}
<nav class="subpages">
{{- range $elements}}
- {{- if not .Params.hidden }}
+ {{- if and (not .Params.hidden) ( not (hasPrefix .File.BaseFileName "__")) }}
{{$pagetitle := .Title}}
{{if eq $pagetitle ""}}{{$pagetitle = .File.BaseFileName}}{{end}}
<li {{if eq . $cPage}}class="active"{{- end}}>
@@ -65,9 +66,16 @@
{{end}}
<!-- / JUMP TO SECTION -->
+
+
+
+
+
<div class="content">
{{- with .Content -}}
- {{ . | replaceRE "(<h[1-9]) id=\"([^\"]+)\"(.+)(</h[1-9]+>)" `${1}${3}${4}<a class="anchor" id="${2}"></a>` | safeHTML }}
+ {{ partial "_checklist-header.html" $ }}
+ {{ . | replaceRE "(<h[1-9]) id=\"([^\"]+)\"(.+)(</h[1-9]+>)" `${1} ref="${2}" ${3}${4}<a class="anchor" id="${2}"></a>` | safeHTML }}
+ {{ partial "_checklist-footer.html" $ }}
{{- else -}}
{{with index .Pages 0}}
<meta http-equiv = "refresh" content = "0; url = {{.RelPermalink}}"/>
@@ -78,6 +86,10 @@
</div>
+
+
+
+
{{if not (in .Params.hide "nextpage")}}
<div class="chevrons">
{{ partial "_next-prev-page.html" .CurrentSection }}