diff --git a/hugolib/embedded_templates_test.go b/hugolib/embedded_templates_test.go
index 5ef92597c..d9575a45f 100644
--- a/hugolib/embedded_templates_test.go
+++ b/hugolib/embedded_templates_test.go
@@ -60,13 +60,13 @@ title: My Site
b.Build(BuildCfg{})
b.AssertFileContent("public/mybundle/index.html", `
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -74,13 +74,13 @@ title: My Site
`)
b.AssertFileContent("public/mypage/index.html", `
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -89,8 +89,8 @@ title: My Site
`)
b.AssertFileContent("public/mysite/index.html", `
-
-
+
+
`)
}
diff --git a/tpl/tplimpl/embedded/templates/opengraph.html b/tpl/tplimpl/embedded/templates/opengraph.html
index bbe4e5dd0..135019b36 100644
--- a/tpl/tplimpl/embedded/templates/opengraph.html
+++ b/tpl/tplimpl/embedded/templates/opengraph.html
@@ -1,25 +1,25 @@
-
-
-
-
+
+
+
+
{{- $images := partial "_funcs/get-page-images" . -}}
{{- range first 6 $images -}}
-
+
{{- end -}}
{{- if .IsPage }}
{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}}
-
-{{ with .PublishDate }}{{ end }}
-{{ with .Lastmod }}{{ end }}
+
+{{ with .PublishDate }}{{ end }}
+{{ with .Lastmod }}{{ end }}
{{- end -}}
-{{- with .Params.audio }}{{ end }}
-{{- with .Params.locale }}{{ end }}
-{{- with .Site.Params.title }}{{ end }}
+{{- with .Params.audio }}{{ end }}
+{{- with .Params.locale }}{{ end }}
+{{- with .Site.Params.title }}{{ end }}
{{- with .Params.videos }}{{- range . }}
-
+
{{ end }}{{ end }}
{{- /* If it is part of a series, link to related articles */}}
@@ -29,7 +29,7 @@
{{ with .Params.series }}{{- range $name := . }}
{{- $series := index $siteSeries ($name | urlize) }}
{{- range $page := first 6 $series.Pages }}
- {{- if ne $page.Permalink $permalink }}{{ end }}
+ {{- if ne $page.Permalink $permalink }}{{ end }}
{{- end }}
{{ end }}{{ end }}
{{- end }}
@@ -38,7 +38,7 @@
{{- with site.Params.social }}
{{- if reflect.IsMap . }}
{{- with .facebook_admin }}
-
+
{{- end }}
{{- end }}
{{- end }}
diff --git a/tpl/tplimpl/embedded/templates/twitter_cards.html b/tpl/tplimpl/embedded/templates/twitter_cards.html
index c445efdfc..14c92274b 100644
--- a/tpl/tplimpl/embedded/templates/twitter_cards.html
+++ b/tpl/tplimpl/embedded/templates/twitter_cards.html
@@ -1,12 +1,12 @@
{{- $images := partial "_funcs/get-page-images" . -}}
{{- with index $images 0 -}}
-
-
+
+
{{- else -}}
-
+
{{- end -}}
-
-
+
+
{{- $twitterSite := "" }}
{{- with site.Params.social }}
@@ -16,7 +16,7 @@
{{- if not (strings.HasPrefix . "@") }}
{{- $content = printf "@%v" . }}
{{- end }}
-
+
{{- end }}
{{- end }}
{{- end }}