1
e11sync/blog/themes/default/layouts/_default/baseof.html

43 lines
1.4 KiB
HTML
Raw Normal View History

2024-01-27 16:42:47 +02:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
{{ partial "html-meta.html" . -}}
2024-01-28 16:13:02 +02:00
<title>{{ if not (or .IsHome .IsSection) }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
2024-01-27 19:19:51 +02:00
{{ $css := resources.Get "style.scss" | resources.ToCSS (dict "transpiler" "dartsass" "enableSourceMap" false) | resources.Fingerprint }}
2024-01-27 16:42:47 +02:00
<link rel="stylesheet" href="{{ $css.RelPermalink }}">
{{ with .Site.Params.favicon -}}
<link rel="shortcut icon" href="{{ . }}" type="image/x-icon">
{{ end -}}
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
{{ end -}}
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description"
content="{{ if .Params.description }}{{ .Params.description }}{{ else }}11sync.net blog{{ end }}"
/>
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
</head>
2024-01-27 19:19:51 +02:00
<body id="page-blog">
<div>
<nav>
{{- range .Site.Menus.main -}}
<a href="{{ .URL }}">{{ .Name }}</a>
{{- end -}}
</nav>
2024-01-27 16:42:47 +02:00
<header>
2024-01-27 19:19:51 +02:00
<h1 class="brand-title"><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
{{- if .Site.Params.subtitle }}
<h2 class="brand-subtitle"><a href="{{ .Site.BaseURL }}">{{ .Site.Params.subtitle }}</a></h2>
{{- end }}
2024-01-27 16:42:47 +02:00
</header>
2024-01-27 19:19:51 +02:00
2024-01-27 16:42:47 +02:00
<main>
{{ block "main" . }}{{- end }}
</main>
2024-01-27 19:19:51 +02:00
</div>
2024-01-27 16:42:47 +02:00
</body>
</html>