From 43d97217c28f7336eaf9e036d776bcfcd5f8992f Mon Sep 17 00:00:00 2001 From: alex bezek Date: Sat, 24 Oct 2020 13:40:51 -0400 Subject: [PATCH] Fix the site meta description to pull from the localized site data (#121) --- layouts/index.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index 226f073..e82e7f3 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,7 +2,14 @@ {{- .Site.Title -}} - + {{ $siteDescription := .Site.Params.description }} + {{ if (index .Site.Data .Site.Language.Lang).site }} + {{ $siteConfig := (index .Site.Data .Site.Language.Lang).site }} + {{ if $siteConfig.description }} + {{ $siteDescription = $siteConfig.description }} + {{ end }} + {{ end }} + {{- partial "header.html" . -}}