hugo-stanley/layouts/partials/head.html

23 lines
844 B
HTML
Raw Permalink Normal View History

2020-03-03 18:56:59 +01:00
<meta charset="utf-8">
{{- hugo.Generator -}}
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta name="color-scheme" content="light dark">
<meta name="supported-color-schemes" content="light dark">
{{- define "title" -}}
{{- $title := .Title -}}
{{- if and (ne $title "") (ne $title site.Title) -}}
<title>{{- $title | safeHTML -}} &nbsp;&ndash;&nbsp; {{- site.Title | safeHTML -}}</title>
{{- else -}}
{{- $slogan := site.Params.slogan -}}
<title>{{- site.Title | safeHTML -}}{{- if and (isset site.Params "slogan") (ne $slogan "") -}} &nbsp;&ndash;&nbsp;
{{- $slogan | safeHTML -}}{{- end -}}</title>
{{- end -}}
{{- end -}}
{{- block "title" . -}}{{- end -}}
{{- partial "style.html" . -}}
{{- partial "rss-feed.html" . -}}
{{- partial "head-extra.html" . -}}