Added head.html

This commit is contained in:
Aroy-Art 2021-04-29 16:00:01 +02:00
parent 18f02a15c9
commit 82c56a914d

View file

@ -0,0 +1,29 @@
<head>
<meta charset="{{ site.Params.charset }}">
<title>{{ .Title }}</title>
{{ "<!-- Mobile responsive meta -->" | safeHTML }}
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}">
{{ with site.Params.author }}
<meta name="author" content="{{ . }}">
{{ end }}
{{ hugo.Generator }}
{{ "<!-- Plugins -->" | safeHTML }}
{{ range site.Params.plugins.css }}
<link rel="stylesheet" href="{{ .link | absURL }}">
{{ end }}
{{"<!-- Main Stylesheet -->" | safeHTML }}
{{ $styles := resources.Get "css/style.css" | minify }}
<link rel="stylesheet" href="{{ $styles.Permalink }}" media="screen">
{{"<!-- Custom Stylesheet -->" | safeHTML}}
{{ $custom := resources.Get "css/custom.css" | minify }}
<link rel="stylesheet" href="{{ $custom.Permalink }}" media="screen">
{{ "<!--Favicon-->" | safeHTML }}
<link rel="shortcut icon" href="{{ `img/favicon.png` | absURL }}" type="image/x-icon">
<link rel="icon" href="{{ `img/favicon.png` | absURL }}" type="image/x-icon">
</head>