diff options
author | Jonathan Rutheiser <jonathan.rutheiser@gmail.com> | 2016-06-01 09:24:17 +0300 |
---|---|---|
committer | Jonathan Rutheiser <jonathan.rutheiser@gmail.com> | 2016-06-01 09:24:17 +0300 |
commit | 529db138e2c08babe8e927386177a00c433a7190 (patch) | |
tree | 8cba69703dd9519b76a2be8ee87b28b71af5522f | |
parent | 9098ae9a7481f537446061031e4d2d0abf2e49b2 (diff) |
Add default site meta description
-rw-r--r-- | layouts/partials/head.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index d08d8c8..b8af0be 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -11,8 +11,12 @@ <meta property="og:title" content="{{ .Title }} - {{ .Site.Title }}"> {{ end }} -{{ if .Description }} -<meta property="description" content="{{ .Description }}"> +{{ if eq .URL "/" }} +<meta property="description" content="{{ .Site.Params.description }}"> +{{ else }} + {{ if .Description }} + <meta property="description" content="{{ .Description }}"> + {{ end }} {{ end }} {{ if .Keywords }} |