aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2021-10-19 02:37:22 -0400
committerPaul Duncan <pabs@pablotron.org>2021-10-19 02:37:22 -0400
commit004951148db0377c11d45179066ec182aae321a5 (patch)
tree251e63c4befa9f990c24bb8be8225d39aa5e6856
parentec9988dd776e0c857fa8a8e6e7d6a03c1600d716 (diff)
downloadpablotron.org-004951148db0377c11d45179066ec182aae321a5.tar.bz2
pablotron.org-004951148db0377c11d45179066ec182aae321a5.zip
add <meta name="description" ...> to header
-rw-r--r--config.toml1
-rw-r--r--themes/hugo-pt2021/layouts/partials/head.html6
2 files changed, 7 insertions, 0 deletions
diff --git a/config.toml b/config.toml
index 978dda7..a396885 100644
--- a/config.toml
+++ b/config.toml
@@ -6,6 +6,7 @@ theme = "hugo-pt2021"
[params]
authorName = 'Paul Duncan'
+ description = "Paul Duncan's technical site."
copyrightStartYear = 1998
# timezone (used for "bin/new post some-post")
tz = "-04:00"
diff --git a/themes/hugo-pt2021/layouts/partials/head.html b/themes/hugo-pt2021/layouts/partials/head.html
index 56468e4..09da4ff 100644
--- a/themes/hugo-pt2021/layouts/partials/head.html
+++ b/themes/hugo-pt2021/layouts/partials/head.html
@@ -4,6 +4,12 @@
{{/* set responsive viewport */}}
<meta name='viewport' content='width=device-width, initial-scale=1'/>
+ {{/* add site description */}}
+ <meta
+ name='description'
+ content='{{- default "" .Site.Params.description -}}'
+ />
+
<title>
{{- block "title" . -}}
{{- .Page.Title -}}