aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 -}}