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:
authorvjeantet <valere.jeantet@gmail.com>2020-07-27 02:45:10 +0300
committervjeantet <valere.jeantet@gmail.com>2020-07-27 02:45:10 +0300
commita426260529c38c7ca5d45e76de6785e8ab979c58 (patch)
treef097bd2d42390dfd07835016c663ae695769fe22 /layouts
parentf812820330338c2a150f4b2eb924dd06f18e01fc (diff)
fix section content title
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/body-article-content.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/body-article-content.html b/layouts/partials/body-article-content.html
index 7385db5..1de2b7c 100644
--- a/layouts/partials/body-article-content.html
+++ b/layouts/partials/body-article-content.html
@@ -12,7 +12,7 @@
{{if not .Params.layout }}
{{$pagetitle := .Title}}
{{if eq $pagetitle ""}}{{$pagetitle = .File.BaseFileName}}{{end}}
- <h1>{{.Section}}
+ <h1>{{.CurrentSection.Title}}
{{if .IsPage }}<span>{{$pagetitle}}</span>{{end}}
</h1>
{{ if gt (len .CurrentSection.Pages) 0}}