From 3401cb90111d8210b5082209fd533e9588931d35 Mon Sep 17 00:00:00 2001 From: as027811 Date: Sat, 24 Oct 2020 10:55:33 -0400 Subject: [PATCH] Fix the site meta description to pull from the localized site data --- 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" . -}}