mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +00:00
7aa1e70638
* 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 }}
|