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')
-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}}