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]
-
+