diff --git a/tpl/tplimpl/template_embedded.go b/tpl/tplimpl/template_embedded.go
index 44bd76189..74bf0a4df 100644
--- a/tpl/tplimpl/template_embedded.go
+++ b/tpl/tplimpl/template_embedded.go
@@ -172,7 +172,7 @@ func (t *GoHTMLTemplate) EmbedTemplates() {
{{ else if not .Date.IsZero }}{{ end }}
{{ if not .Lastmod.IsZero }}{{ end }}
{{ else }}
-{{ if not .Date.IsZero }}{{ end }}
+{{ if not .Date.IsZero }}{{ end }}
{{ end }}{{ with .Params.audio }}
{{ end }}{{ with .Params.locale }}
{{ end }}{{ with .Site.Params.title }}