diff options
author | Zachary Betz <zwbetz@gmail.com> | 2019-02-20 23:01:28 +0300 |
---|---|---|
committer | Zachary Betz <zwbetz@gmail.com> | 2019-02-20 23:01:28 +0300 |
commit | b0c4dc0755192f56063e04dc3cf069cb065a249b (patch) | |
tree | 458ad1e0e489f1f9605b979c9201469c88106bb0 | |
parent | bbbc35149425148d95cc23777d130b15ef5890fd (diff) |
If is home then insert meta description
-rw-r--r-- | layouts/partials/head.html | 6 |
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"> |