diff options
author | vjeantet <valere.jeantet@gmail.com> | 2020-07-27 02:45:10 +0300 |
---|---|---|
committer | vjeantet <valere.jeantet@gmail.com> | 2020-07-27 02:45:10 +0300 |
commit | a426260529c38c7ca5d45e76de6785e8ab979c58 (patch) | |
tree | f097bd2d42390dfd07835016c663ae695769fe22 /layouts | |
parent | f812820330338c2a150f4b2eb924dd06f18e01fc (diff) |
fix section content title
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/body-article-content.html | 2 |
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}}
|