archie-shades-of-purple/layouts/partials/header.html

47 lines
2.3 KiB
HTML
Raw Normal View History

2020-04-08 20:44:29 +02:00
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
{{- $title := ( .Title ) -}}
{{- $siteTitle := ( .Site.Title ) -}}
{{- if .IsHome -}}
2020-06-24 09:57:58 +02:00
<title>{{ $siteTitle }} | Home </title>
2020-04-08 20:44:29 +02:00
{{- else -}}
<title>{{ $title }} - {{ $siteTitle }}</title>
{{- end -}}
{{- if isset .Site.Params "favicon" -}}
<link rel="icon" type="image/png" href={{ .Site.Params.favicon }} />
{{- end -}}
<meta name="viewport" content="width=device-width, initial-scale=1">
2020-06-24 09:57:58 +02:00
<meta property="og:title" content="{{ $title }} | {{ $siteTitle }}" />
<meta name="twitter:title" content="{{ $title }} | {{ $siteTitle }}" />
<meta property="og:image" content="{{ .Site.Params.og_image }}"/>
<meta itemprop="name" content="{{ $title }} | {{ $siteTitle }}" />
<meta name="application-name" content="{{ $title }} | {{ $siteTitle }}" />
<meta property="og:site_name" content="{{ .Site.Params.sitename }}" />
2020-04-08 20:44:29 +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-06-24 09:57:58 +02:00
<meta name="description" content="{{ $.Param "description" }}">
2020-04-08 20:44:29 +02:00
{{- template "_internal/opengraph.html" . -}}
{{- template "_internal/twitter_cards.html" . -}}
2020-04-10 21:41:05 +02:00
{{ if and (isset .Site.Params "social") (isset .Site.Params "feathericonscdn") (eq .Site.Params.featherIconsCDN true) -}}
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
{{- else if (isset .Site.Params "social") -}}
<script src="{{ .Site.BaseURL }}js/feather.min.js"></script>
{{ end }}
2020-04-09 08:36:48 +02:00
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
<link rel="stylesheet" type="text/css" media="screen" href="{{ .Site.BaseURL }}css/main.css" />
2020-04-16 09:20:38 +02:00
{{- if or (eq .Site.Params.mode "auto") (eq .Site.Params.mode "dark") -}}
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/dark.css" {{ if eq .Site.Params.mode "auto" }}media="(prefers-color-scheme: dark)"{{ end }} />
{{- end -}}
2020-04-08 20:44:29 +02:00
{{- range .Site.Params.customJS }}
{{- if or (hasPrefix . "http://") (hasPrefix . "https://") }}
<script src="{{ . }}"></script>
{{- else }}
<script src="{{ $.Site.BaseURL }}{{ . }}"></script>
{{- end }}
{{- end }}
2020-04-10 21:41:05 +02:00
</head>