mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
fix(list): display parent section title
This commit is contained in:
parent
67d9da03a7
commit
921bd720af
@ -1,9 +1,9 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<h3 class="section-title">
|
<h3 class="section-title">
|
||||||
{{ if eq .CurrentSection .FirstSection }}
|
{{ if eq .Parent (.GetPage "/") }}
|
||||||
{{ T "list.section" }}
|
{{ T "list.section" }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ .CurrentSection.Title }}
|
{{ .Parent.Title }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user