Files
caldwell/layouts/_default/baseof.html
Nikolaos Karaolidis 9f2591ae13 Add header
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
2025-08-06 09:12:06 +02:00

54 lines
1.3 KiB
HTML

<!doctype html>
<html lang="{{- .Site.LanguageCode -}}">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>
{{- if .IsHome -}}
{{ .Site.Title }}
{{- else -}}
{{ .Site.Title }} &middot;
{{ .Title }}
{{- end -}}
</title>
{{ with .Site.Params.description }}
<meta name="description" content="{{- . -}}" />
{{ end }}
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="robots" content="all,follow" />
<meta name="googlebot" content="index,follow,snippet,archive" />
{{ with resources.Get "sass/main.scss" }}
{{ with . | toCSS (dict "targetPath" "css/main.css") | fingerprint }}
<link
rel="stylesheet"
href="{{- .RelPermalink -}}"
integrity="{{- .Data.Integrity -}}"
/>
{{ end }}
{{ end }}
{{ with .OutputFormats.Get "RSS" }}
{{ printf `
<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML
}}
{{ end }}
{{ partial "opengraph.html" . }}
{{ partial "twitter.html" . }}
</head>
<body>
{{ partial "header.html" . }}
{{ block "main" . }}
{{ end }}
{{ partial "footer.html" . }}
</body>
</html>