fix(list): display parent section title

This commit is contained in:
Jimmy Cai 2020-12-22 21:07:37 +01:00
parent 67d9da03a7
commit 921bd720af
No known key found for this signature in database
GPG Key ID: 3EA408E527F37B18

View File

@ -1,9 +1,9 @@
{{ define "main" }}
<h3 class="section-title">
{{ if eq .CurrentSection .FirstSection }}
{{ if eq .Parent (.GetPage "/") }}
{{ T "list.section" }}
{{ else }}
{{ .CurrentSection.Title }}
{{ .Parent.Title }}
{{ end }}
</h3>