🎉 Hello World
This commit is contained in:
22
layouts/partials/head.html
Normal file
22
layouts/partials/head.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<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 -}} – {{- site.Title | safeHTML -}}</title>
|
||||
{{- else -}}
|
||||
{{- $slogan := site.Params.slogan -}}
|
||||
<title>{{- site.Title | safeHTML -}}{{- if and (isset site.Params "slogan") (ne $slogan "") -}} –
|
||||
{{- $slogan | safeHTML -}}{{- end -}}</title>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- block "title" . -}}{{- end -}}
|
||||
|
||||
{{- partial "style.html" . -}}
|
||||
{{- partial "rss-feed.html" . -}}
|
||||
{{- partial "head-extra.html" . -}}
|
Reference in New Issue
Block a user