Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/cupper-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Betz <zwbetz@gmail.com>2019-02-20 23:01:28 +0300
committerZachary Betz <zwbetz@gmail.com>2019-02-20 23:01:28 +0300
commitb0c4dc0755192f56063e04dc3cf069cb065a249b (patch)
tree458ad1e0e489f1f9605b979c9201469c88106bb0
parentbbbc35149425148d95cc23777d130b15ef5890fd (diff)
If is home then insert meta description
-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 4a746d6..974a4d1 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -6,6 +6,12 @@
{{ .Hugo.Generator }}
<link rel="canonical" href="{{ .Permalink }}">
+ {{ if .IsHome }}
+ {{ with .Site.Params.description }}
+ <meta name="description" content="{{ . | plainify }}">
+ {{ end }}
+ {{ end }}
+
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">