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

github.com/jrutheiser/hugo-lithium-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/head.html8
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 }}