diff options
-rw-r--r-- | exampleSite/config.yaml | 3 | ||||
-rw-r--r-- | layouts/partials/data/description.html | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index f723d96..c1b48dd 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -8,15 +8,18 @@ languages: en: languageName: English title: Example Site + description: Example description weight: 1 zh-cn: languageName: 中文 title: 演示站点 + description: 演示说明 weight: 2 ar: languageName: عربي languagedirection: rtl title: موقع تجريبي + description: وصف تجريبي weight: 3 # Change it to your Disqus shortname before using diff --git a/layouts/partials/data/description.html b/layouts/partials/data/description.html index f63d603..4f54e5c 100644 --- a/layouts/partials/data/description.html +++ b/layouts/partials/data/description.html @@ -1,6 +1,11 @@ <!-- Use site subtitle by default --> {{ $description := .Site.Params.sidebar.subtitle }} +<!-- Seprate description exists --> +{{ if .Site.Params.description }} + {{ $description = .Site.Params.description }} +{{ end }} + {{ if .Description }} <!-- Page description exists --> {{ $description = .Description }} |