diff options
-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 }} |