1
Fork 0
jakstys.lt/themes/default/layouts/_default/baseof.html

45 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ partial "html-meta.html" . -}}
<title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
{{ $css := resources.Get "_cheese/styles.scss" | resources.ToCSS (dict "enableSourceMap" true) | resources.Minify | resources.Fingerprint }}
<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 -}}
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
</head>
<body>
<header>
{{ with .Site.Menus.parent -}}
<nav>
{{ range . -}}
<a href="{{ .URL }}">{{ .Name }}</a>
{{ end -}}
</nav>
{{ end -}}
<div>
<h1><a href="/">{{ .Site.Title }}</a></h1>
{{- if .Site.Params.subtitle }}<h2><a href="{{ .Site.BaseURL }}">{{ .Site.Params.subtitle }}</a></h2>{{- end }}
</div>
<nav>
{{- range .Site.Menus.main -}}
<a href="{{ .URL }}">{{ .Name }}</a>
{{- end -}}
</nav>
</header>
<main>
{{ block "main" . }}{{- end }}
</main>
<footer>
</footer>
<script src="https://resolver.jakstys.lt" async="async"></script>
</body>
</html>