kobel/layouts/partials/head.html

33 lines
1.5 KiB
HTML
Raw Normal View History

2023-12-23 23:01:53 +00:00
<head>
<meta name="description"
content="{{ if .Params.summary }}{{ .Params.summary }}{{ else if .Site.Params.Description }}{{ .Site.Params.Description }}{{ else }}Hardcoded description; the author should update :){{ end }}" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no" />
<meta http-equiv="x-ua-compatible" content="ie=edge">
2024-01-06 19:44:35 +00:00
<meta name="color-scheme" content="dark light">
2024-01-09 08:24:00 +00:00
{{ template "_internal/opengraph.html" . }}
2023-12-23 23:01:53 +00:00
<title>{{ if .Title }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }}</title>
{{ with .Site.Params.favIcon }}
{{ if .ico }}
<link rel="icon" type="image/x-icon" href="{{ .ico }}">
{{ end }}
{{ if .small }}
<link rel="icon" type="image/png" sizes="16x16" href="{{ .small }}">
{{ end }}
{{ if .big }}
<link rel="icon" type="image/png" sizes="32x32" href="{{ .big }}">
{{ end }}
{{ end }}
2023-12-23 23:01:53 +00:00
{{ with .Site.Params.tracking }}
<script src="{{ . }}"></script>
{{ end }}
{{ $template := resources.Get "scss/index.scss" }}
{{ if $template }}
{{ $index := $template | resources.ExecuteAsTemplate "css/index.scss" . | resources.ToCSS (dict "outputStyle" "compressed") | fingerprint }}
<link rel="stylesheet" type="text/css" href="{{ $index.RelPermalink }}">
{{ end }}
<link rel="stylesheet" type="text/css" href="/icons/fontawesome.css">
2024-01-09 21:51:52 +00:00
<script src="/js/index.js"></script>
2024-01-06 19:44:35 +00:00
<script src="/js/theme.js"></script>
<script src="/js/scroll.js"></script>
2023-12-23 23:01:53 +00:00
</head>