cosin-website/layouts/_default/baseof.html
Ral 852c06e55b
All checks were successful
/ deploy (push) Successful in 31s
/ test (push) Successful in 1m17s
Extract opengraph code into partial
2024-06-16 19:06:33 +02:00

35 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html lang='{{ .Site.Language.Lang }}'>
<head>
<meta charset="utf-8">
<title>{{ .Site.Title }} | {{ .Page.Title }}</title>
<!-- Include our own css last -->
{{ $options := dict "targetPath" "custom.css" "outputStyle" "compressed" }}
{{ $style := resources.Get "/sass/custom.css" | resources.ToCSS $options | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}"/>
{{ partial "opengraph.html" .}}
</head>
<body>
{{ block "header" . }} {{ partial "site-header.html" . }} {{ end }}
{{ block "menu" . }} {{ partial "site-menu.html" . }} {{ end }}
<div id="content">
{{ if eq .Site.Language.Lang "de" }}
{{ partial "site-sidebar.de.html" . }}
{{ else if eq .Site.Language.Lang "fr" }}
{{ partial "site-sidebar.fr.html" . }}
{{ else if eq .Site.Language.Lang "it" }}
{{ partial "site-sidebar.it.html" . }}
{{ else if eq .Site.Language.Lang "en" }}
{{ partial "site-sidebar.en.html" . }}
{{ end }}
{{ block "main" . }} {{ end }}
<div id="clear"></div>
</div>
{{ block "footer" . }} {{ partial "site-footer.html" . }} {{ end }}
</body>
</html>