diff --git a/tpl/tplimpl/embedded/templates/opengraph.html b/tpl/tplimpl/embedded/templates/opengraph.html
index a9b348e9ef0..59e63d6be56 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 6b2664c4d84..f9d25eb49f3 100644
--- a/tpl/tplimpl/tplimpl_integration_test.go
+++ b/tpl/tplimpl/tplimpl_integration_test.go
@@ -372,7 +372,7 @@ series: [series-1]
-
+