mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-02-28 06:20:13 +00:00

* fix menu ordering when mixing chapters and non-chapters * allow for `chapter` type override in `_index` pages * fix breadcrumbs * fix some crashes with empty categories * use page context in list.html (to avoid setting uniqueid in scratch) * use UniqueID instead of relative links for page identification
13 lines
279 B
HTML
13 lines
279 B
HTML
{{ if .Content }}
|
|
{{ partial "header.html" . }}
|
|
{{ .Content }}
|
|
{{ partial "footer.html" . }}
|
|
{{ else }}
|
|
{{ with (index (index .Site.Sections .Section) 0) }}
|
|
{{ with .Page }}
|
|
{{ partial "header.html" . }}
|
|
{{ .Content }}
|
|
{{ partial "footer.html" . }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|