summaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2023-05-09 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2023-05-09 00:00:00 +0000
commit7ba1562e0912d6db13e7d195b087316a00764ca6731bd77cf634c7c47bceff4c (patch)
tree7fff0909c33b06d4e52068b845bd6aeedcb3647ce0d7c97c6f351457e51afde7 /layouts/partials
parentb077fceef78e9bda5f1402c22f8e7d4ffb47d0e3ac242ea8297981c45e30155b (diff)
downloadhugo-theme-journal-0.5.2.tar.gz
hugo-theme-journal-0.5.2.zip
Make non-critical page elements optionalv0.5.2
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/head.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 22efeb8..9f6faf9 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,9 +1,15 @@
<head>
<meta charset="utf-8">
<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 }}
<meta name="theme-color" content="#000">
<link rel="stylesheet" type="text/css" href="{{ (resources.Get "css/style.css").RelPermalink }}">
+ {{- if $.Site.Params.title }}
<title>{{ .Title }}</title>
+ {{- end }}
</head> \ No newline at end of file