hugo-blog/layouts/_default/baseof.html
John ab7e9c9ed2
All checks were successful
Build Hugo Site / build (push) Successful in 7s
more layouts work
2025-03-09 15:37:10 -05:00

49 lines
1.4 KiB
HTML

{{- define "baseof" -}}
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode | default "en-US" }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ partial "favicon.html" . }}
<title>{{ block "title" . }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
{{ partial "seo_tags.html" . }}
<!-- Load Theme Styles -->
{{ $style := print (default "original" .Site.Params.themeStyle) ".css" | resources.Get | minify }}
<link href="{{ $style.RelPermalink }}" rel="stylesheet">
{{ if (.Page.Store.Get "hasCodeBlock") }}
{{ $syntax := resources.Get "syntax.css" | minify }}
<link href="{{ $syntax.RelPermalink }}" rel="stylesheet">
{{ end }}
{{ with .Params.style }}
{{ $extra := resources.Get . | minify }}
<link href="{{ $extra.RelPermalink }}" rel="stylesheet">
{{ end }}
</head>
<body>
<!-- Site Container -->
<div class="container">
<!-- Site Header (Reuses Bearcub's Partial) -->
{{ partial "header.html" . }}
<!-- Main Content Block (Where Custom Pages Inject Content) -->
<main class="content">
{{ block "main" . }}{{ end }}
</main>
<!-- Footer (Reuses Bearcub's Partial) -->
{{ partial "footer.html" . }}
</div>
<!-- Load Scripts -->
{{ partial "scripts.html" . }}
</body>
</html>
{{- end -}}