diff options
author | Robert <metbril@users.noreply.github.com> | 2022-02-28 19:00:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-28 19:00:00 +0300 |
commit | 0e73c5b18cf615641fdd481a44d75781fe0e04eb (patch) | |
tree | 8e78529d056f1de924665b46056cffed84353fd8 | |
parent | 8fdfd205f9b4fd2f52eac9dfd2da8e11bea2015e (diff) |
Change section name to section title in summary (#520)
* Change section name to section title
Mimics functionality in page.html. Fix #519
* Keep title as specified
* Include span in conditional
-rw-r--r-- | layouts/_default/summary.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index fb77404..2bad536 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -1,6 +1,6 @@ <div class="relative w-100 mb4 bg-white nested-copy-line-height"> <div class="bg-white mb3 pa4 gray overflow-hidden"> - <span class="f6 db">{{ humanize .Section }}</span> + {{with .CurrentSection.Title }}<span class="f6 db">{{ . }}</span>{{end}} <h1 class="f3 near-black"> <a href="{{ .RelPermalink }}" class="link black dim"> {{ .Title }} |