cupper-hugo-theme/layouts/partials/head.html

50 lines
1.6 KiB
HTML
Raw Normal View History

2019-02-13 06:11:59 +01:00
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
2019-02-14 20:35:17 +01:00
2019-04-11 16:34:41 +02:00
{{ hugo.Generator }}
2020-11-25 03:51:01 +01:00
<link rel="canonical" href="{{ .RelPermalink }}">
2019-02-13 22:47:30 +01:00
{{ if .IsHome }}
2019-02-20 21:07:34 +01:00
{{ with .Site.Params.homeMetaContent }}
<meta name="description" content="{{ . | plainify }}">
{{ end }}
2021-05-20 03:59:38 +02:00
{{ else }}
{{ $summary := trim (.Summary | plainify | htmlUnescape) "\n\r"
| default .Title }}
<meta name="description" content="{{ $summary }}">
{{ end }}
2019-02-13 22:47:30 +01:00
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#000000">
2019-02-13 06:11:59 +01:00
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="theme-color" content="#ffffff">
2019-02-13 22:47:30 +01:00
<style>
body {
visibility: hidden;
opacity: 0;
}
</style>
2020-11-25 03:51:01 +01:00
<link rel="stylesheet" href="{{ "css/prism.css" | relURL }}" media="none" onload="this.media='all';">
2019-02-15 17:57:49 +01:00
{{ $templateStyles := resources.Get "css/template-styles.css" }}
{{ $styles := $templateStyles | resources.ExecuteAsTemplate "css/styles.css" . }}
2020-11-25 03:51:01 +01:00
<link rel="stylesheet" type="text/css" href="{{ $styles.RelPermalink }}">
2019-02-13 22:47:30 +01:00
2020-11-17 03:32:11 +01:00
{{ range .Site.Params.customCss }}
2020-11-25 03:51:01 +01:00
<link rel="stylesheet" href="{{ . | relURL }}">
2020-11-17 03:32:11 +01:00
{{ end }}
2019-02-13 06:11:59 +01:00
{{ $title := print .Title " | " .Site.Title }}
{{ if .IsHome }}
{{ $title = .Site.Title }}
{{ end }}
2019-02-14 20:35:17 +01:00
<title>{{ $title }}</title>
2019-02-13 06:11:59 +01:00
</head>