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

47 lines
1.8 KiB
HTML
Raw Normal View History

2020-01-12 07:51:51 +01:00
<!-- Basic stuff -->
<meta charset="utf-8">
<meta name="HandheldFriendly" content="True">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="referrer" content="no-referrer-when-downgrade">
2020-06-05 17:32:01 +02:00
<title>{{ if .Title }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
2020-01-12 07:51:51 +01:00
<meta name="description" content="{{ .Site.Params.Description }}">
2020-04-29 21:27:53 +02:00
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
2020-01-12 07:51:51 +01:00
2020-02-15 21:34:25 +01:00
<link rel="icon" type="image/x-icon" href="{{ "favicon.ico" | absURL }}">
<link rel="apple-touch-icon-precomposed" href="{{ "favicon.png" | absURL }}">
2020-01-12 07:51:51 +01:00
2020-02-15 21:34:25 +01:00
<link rel="stylesheet" href="{{ "css/style.css" | absURL }}?rnd={{ now.Unix }}" />
2020-01-12 07:51:51 +01:00
2020-06-21 22:23:07 +02:00
{{- $style := "light" -}}
{{- if and (isset site.Params "style") (ne site.Params.style "") -}}
{{- $style = site.Params.style | lower -}}
{{- end -}}
{{- if eq $style "dark" -}}
<link rel="stylesheet" href="{{ "css/dark.css" | absURL }}?rnd={{ now.Unix }}" />
{{- else -}}
<link rel="stylesheet" href="{{ "css/light.css" | absURL }}?rnd={{ now.Unix }}" />
{{- end -}}
{{ range .Site.Params.customCSS -}}
<link rel="stylesheet" href="{{ . | absURL }}?rnd={{ now.Unix }}">
{{- end }}
2020-01-23 21:29:36 +01:00
{{ template "_internal/opengraph.html" . }}
2020-01-23 21:55:42 +01:00
{{ template "_internal/twitter_cards.html" . }}
2020-01-12 07:51:51 +01:00
<!-- Article tags -->
<!-- <meta property="article:published_time" content="">
<meta property="article:modified_time" content="">
<meta property="article:tag" content="">
<meta property="article:publisher" content="https://www.facebook.com/XXX"> -->
2020-01-23 21:55:42 +01:00
2020-01-22 18:51:35 +01:00
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
{{ template "_internal/google_analytics_async.html" . }}
2020-06-05 17:32:01 +02:00
{{ end }}
2020-06-09 21:45:50 +02:00
{{ partial "head-extra.html" . }}