diff --git a/layouts/docs/list.html b/layouts/docs/list.html
index e2679fb2f9..376ed81cd4 100644
--- a/layouts/docs/list.html
+++ b/layouts/docs/list.html
@@ -3,21 +3,21 @@
{{ .Title }}
{{ with .Params.description }}
{{ . | markdownify }}
{{ end }}
- {{ partial "taxonomy_terms_article_wrapper.html" . }}
- {{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) }}
- {{ partial "reading-time.html" . }}
- {{ end }}
+ {{ partial "taxonomy_terms_article_wrapper.html" . -}}
+ {{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) -}}
+ {{ partial "reading-time.html" . -}}
+ {{ end -}}
{{ .Content }}
- {{ partial "section-index.html" . }}
- {{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
- {{ partial "feedback.html" .Site.Params.ui.feedback }}
+ {{ partial "section-index.html" . -}}
+ {{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) -}}
+ {{ partial "feedback.html" .Site.Params.ui.feedback -}}
- {{ end }}
- {{ if (.Site.DisqusShortname) }}
+ {{ end -}}
+ {{ if (.Site.DisqusShortname) -}}
- {{ partial "disqus-comment.html" . }}
- {{ end }}
- {{ partial "page-meta-lastmod.html" . }}
+ {{- partial "disqus-comment.html" . -}}
+ {{ end -}}
+ {{ partial "page-meta-lastmod.html" . -}}
-{{ end }}
+{{ end -}}
diff --git a/layouts/partials/taxonomy_terms_article.html b/layouts/partials/taxonomy_terms_article.html
index c1684a5068..79ef364f74 100644
--- a/layouts/partials/taxonomy_terms_article.html
+++ b/layouts/partials/taxonomy_terms_article.html
@@ -1,12 +1,12 @@
-{{ $context := .context }}
-{{ $taxo := .taxo }}
-{{ if (gt (len ($context.GetTerms $taxo)) 0)}}
+{{ $context := .context -}}
+{{ $taxo := .taxo -}}
+{{ if (gt (len ($context.GetTerms $taxo)) 0) -}}
{{ . | markdownify }}
{{ end }}