summaryrefslogtreecommitdiff
path: root/layouts/_partials/head.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_partials/head.html')
-rw-r--r--layouts/_partials/head.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html
new file mode 100644
index 0000000..8250e19
--- /dev/null
+++ b/layouts/_partials/head.html
@@ -0,0 +1,22 @@
+<head>
+ <meta charset="utf-8">
+ <meta name="theme-color" content="#000">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ {{- if $.Site.Params.description }}
+ <meta name="description" content="{{ $.Site.Params.description }}">
+ {{- end -}}
+ {{ if $.Site.Params.keywords }}
+ <meta name="keywords" content="{{ $.Site.Params.keywords }}">
+ {{- end -}}
+ {{ if .Site.Params.custom_css -}}
+ {{ range .Site.Params.custom_css }}
+ <link rel="stylesheet" type="text/css" href="{{ relURL . }}">
+ {{- end -}}
+ {{ else }}
+ <link rel="stylesheet" type="text/css" href="{{ (resources.Get "static/css/style.css").RelPermalink }}">
+ {{- end -}}
+ {{ if (not (fileExists "static/favicon.ico")) }}
+ <link rel="icon" href="data:,">
+ {{- end }}
+ <title>{{ .Title }}</title>
+</head> \ No newline at end of file