Rinkusu/layouts/partials/head.html

42 lines
1.8 KiB
HTML
Raw Normal View History

2021-04-29 16:00:01 +02:00
<head>
<meta charset="{{ site.Params.charset }}">
2021-09-05 10:40:18 +02:00
<title>{{with .Title }}{{ . }}{{ else }}{{ with site.Params.title }}{{ . }}{{ end }}{{ end }}</title>
2021-04-29 16:00:01 +02:00
{{ "<!-- 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 }}
2021-09-02 18:50:57 +02:00
{{ if site.Params.themeColor }}
<meta name="theme-color" content="{{ site.Params.themeColor }}">
{{ end }}
2021-04-29 16:00:01 +02:00
2024-02-12 18:43:38 +01:00
{{ template "partials/opengraph.html" . }}
2021-04-29 16:00:01 +02:00
{{ "<!-- Plugins -->" | safeHTML }}
{{ range site.Params.plugins.css }}
<link rel="stylesheet" href="{{ .link | absURL }}">
{{ end }}
2021-10-07 15:20:52 +02:00
{{ "<!-- Codeblocks Stylesheet -->" | safeHTML }}
{{ $style := resources.Get "css/syntax.css" | minify }}
<link rel="stylesheet" href="{{ $style.Permalink }}" media="screen">
2021-05-04 12:00:27 +02:00
{{ "<!-- Main Stylesheet -->" | safeHTML }}
2021-04-29 16:00:01 +02:00
{{ $styles := resources.Get "css/style.css" | minify }}
<link rel="stylesheet" href="{{ $styles.Permalink }}" media="screen">
2021-05-04 12:00:27 +02:00
{{ "<!-- Custom Stylesheet -->" | safeHTML }}
2021-04-29 16:00:01 +02:00
{{ $custom := resources.Get "css/custom.css" | minify }}
<link rel="stylesheet" href="{{ $custom.Permalink }}" media="screen">
{{ "<!--Favicon-->" | safeHTML }}
2022-03-10 14:53:00 +01:00
<link rel="shortcut icon" href="{{ with site.Params.favicon }}{{ . | absURL }}{{ end }}" type="image/x-icon">
<link rel="icon" href="{{ with site.Params.favicon }}{{ . | absURL }}{{ end }}" type="image/x-icon">
2021-08-31 13:27:34 +02:00
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
2021-04-29 16:00:01 +02:00
</head>