From 87ab7f7ffce82f1c7a264f1f7daa97f13dc77fde Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Fri, 10 May 2024 15:25:20 -0700 Subject: [PATCH] tpl/tplimpl: Improve locale value in opengraph.html Closes #12480 --- tpl/tplimpl/embedded/templates/opengraph.html | 4 ++-- tpl/tplimpl/tplimpl_integration_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tpl/tplimpl/embedded/templates/opengraph.html b/tpl/tplimpl/embedded/templates/opengraph.html index a9b348e9e..59e63d6be 100644 --- a/tpl/tplimpl/embedded/templates/opengraph.html +++ b/tpl/tplimpl/embedded/templates/opengraph.html @@ -12,8 +12,8 @@ {{- end }} -{{- with or .Params.locale site.Language.LanguageCode site.Language.Lang }} - +{{- with or .Params.locale site.Language.LanguageCode }} + {{- end }} {{- if .IsPage }} diff --git a/tpl/tplimpl/tplimpl_integration_test.go b/tpl/tplimpl/tplimpl_integration_test.go index 6b2664c4d..f9d25eb49 100644 --- a/tpl/tplimpl/tplimpl_integration_test.go +++ b/tpl/tplimpl/tplimpl_integration_test.go @@ -372,7 +372,7 @@ series: [series-1] - +