dot-hugo/layouts/_default/baseof.html
2021-10-31 10:31:58 +06:00

24 lines
No EOL
834 B
HTML

<!DOCTYPE html>
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
{{ partial "head.html" . }}
<body>
{{ if .IsHome }}
{{ "<!-- header -->" | safeHTML }}
<header class="banner {{if .Site.Params.banner.bg_image}}overlay bg-cover{{else}}bg-primary{{end}}" data-background="{{ .Site.Params.banner.bg_image | absURL }}">
{{ partial "navigation.html" . }}
{{ partialCached "banner.html" . }}
</header>
{{ "<!-- /header -->" | safeHTML }}
{{ else }}
{{ "<!-- header -->" | safeHTML }}
<header class="shadow-bottom sticky-top bg-white">
{{ partialCached "navigation.html" . }}
</header>
{{ "<!-- /header -->" | safeHTML }}
{{ end }}
{{ block "main" . }}{{ end }}
{{ partialCached "footer.html" . }}
</body>
</html>