mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Robert
28.00.2022 0e73c5b18cf615641fdd481a44d75781fe0e04eb
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
1 files modified
2 ■■■ changed files
layouts/_default/summary.html 2 ●●● patch | view | raw | blame | history
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 }}