mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-31 08:57:15 +00:00
More backwards compatibility
This commit is contained in:
parent
e24942a918
commit
38301a171f
1 changed files with 6 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue