diff --git a/tpl/template_embedded.go b/tpl/template_embedded.go
index c0b36d999..bb946a515 100644
--- a/tpl/template_embedded.go
+++ b/tpl/template_embedded.go
@@ -134,7 +134,7 @@ func (t *GoHtmlTemplate) EmbedTemplates() {
{{ end }}{{ end }}
-{{ with .Params.audio }}
+{{ if not .Date.IsZero }}{{ end }}{{ with .Params.audio }}
{{ end }}{{ with .Params.locale }}
{{ end }}{{ with .Site.Params.title }}
{{ end }}{{ with .Params.videos }}
@@ -194,7 +194,7 @@ func (t *GoHtmlTemplate) EmbedTemplates() {
{{if .IsPage}}{{ $ISO8601 := "2006-01-02T15:04:05-07:00" }}{{ if not .PublishDate.IsZero }}
{{ end }}
-
+{{ if not .Date.IsZero }}{{ end }}
{{ with .Params.images }}{{ range first 6 . }}