hugo-page-test/themes/tsc_vfl/layouts/partials/page/head.html
Christian Wolf abec3392c8 Fix page header
Add summray as a fllback to descriptiona and remove doubled comma in keywords
2024-05-23 09:25:14 +02:00

25 lines
1.2 KiB
HTML

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="{{ with .Params.robots }}{{ . }}{{ else }}index,follow{{ end }}">
<meta name="generator" content="Hugo static site generator">
{{ with .Params.description }}
<meta name="description" content="{{ . }}">
{{ else }}
{{ with .Params.summary }}
<meta name="description" content="{{ . }}">
{{ end }}
{{ end }}
{{ with .Keywords }}<meta name="keywords" content="{{ delimit . "," "," }}">{{ end }}
{{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction)) }}
{{ $scss := resources.Get "css/main.scss" | resources.ToCSS $options }}
<link rel="stylesheet" type="text/css" href="{{ $scss.RelPermalink }}" />
{{ $title := print .Site.Title " | " .Title }}
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
<title>{{ $title }}</title>
<link rel="canonical" href="{{ .Permalink }}" />
<script defer src="{{ relURL "js/jquery-3.6.3.min.js" }}"></script>
<script defer src="{{ relURL "js/slider.js" }}"></script>
<script defer src="{{ relURL "js/gallery.js" }}"></script>
</head>