cremeaux/layouts/_default/baseof.html

18 lines
577 B
HTML
Raw Normal View History

2020-09-02 16:54:03 +02:00
<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">
{{ partial "head.html" . }}
<body{{ $currentPage := . }}{{ range .Site.Menus.main }}
{{ if or ($currentPage.IsMenuCurrent "main" .) (eq $currentPage.Menus.main.Pre .Pre) }} class="{{ .Pre }}"{{ end }}
{{ if $currentPage.IsHome }} class="home"{{ end }}
{{ end }}>
{{ partial "header.html" . }}
{{ block "all" . }}
<main role="main" id="content">
{{ block "main" . }}{{ end }}
</main>
{{ end }}
{{ partial "footer.html" . }}
{{ partial "js.html" . }}
</body>
</html>