mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 14:18:01 +08:00
More backwards compatibility
This commit is contained in:
parent
e24942a918
commit
38301a171f
@ -1,5 +1,9 @@
|
||||
{{ if .Content }}
|
||||
{{ partial "header.html" . }}
|
||||
{{ if .Content }}
|
||||
{{ .Content }}
|
||||
{{ partial "footer.html" . }}
|
||||
{{ else }}
|
||||
{{ with (index (index .Site.Sections .Section) 0) }}
|
||||
{{ .Page.Content }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ partial "footer.html" . }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user