blob: 00ce5af59888dabdcfb50dea39711cc3414ac161 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}" class="no-js">
{{ partial "head.html" . }}
<body>
{{ partial "body-top" . }}
<main>
{{ range $i, $m := .Site.Menus.main -}}
{{ $partial := printf "partials/sections/%s.html" $m.Identifier }}
{{ $page := $m.Page }}
{{ if not $page -}}
{{ $page = $.Site.GetPage $m.Identifier }}
{{- end }}
{{ if templates.Exists $partial }}
<section class="{{ .Identifier }}" id="{{ replace (replace .URL "/" "") "#" "" }}">
{{ partial $partial $page }}
</section>
{{ else if $page }}
<section class="default" id="{{ replace (replace .URL "/" "") "#" "" }}">
{{ partial "partials/sections/default.html" $page }}
</section>
{{ else }}
{{ warnf "could not find page for menu: %#v\n\t💡 TIP: Please create one via `hugo new %s`" $m $m.Identifier }}
{{- end }}
{{- end }}
</main>
{{ partial "footer.html" . }}
{{ partial "body-bottom" . }}
</body>
</html>
{{ if .Site.Params.Feat.notifyOnNewThemeVersion }}
{{ partial "release-notify" site.Data.release_notify }}
{{ end }}
|