diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index b34af12..5d501c8 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,4 +1,4 @@ -{{ $themeStyleDefault := "light.css" }} +{{ $themeStyleDefault := "light.css" -}} @@ -10,9 +10,9 @@ {{ block "title" . }}{{ .Site.Title }}{{ end }} -{{ if .Site.Params.ThemeStyleSwitcher }} +{{- if .Site.Params.ThemeStyleSwitcher }} -{{ end }} +{{- end }} @@ -24,40 +24,40 @@
-{{ if .Site.Params.ThemeStyleSwitcher }} +{{- if .Site.Params.ThemeStyleSwitcher }} -{{ end }} +{{- end }}
-{{ if .Site.Menus.main }} +{{- if .Site.Menus.main }}
Links:
-{{ end }} +{{- end }}
- {{ block "main" . }}{{ end }} + {{- block "main" . }}{{ end }}
-{{ if .Site.Params.FooterText }} +{{- if .Site.Params.FooterText }}
-{{ end }} +{{- end }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index a740bcf..f7b75cc 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -4,29 +4,29 @@

{{ .Title }}

- {{ if gt (len .Sections) 0 }} + {{- if gt (len .Sections) 0 }}

Categories

All Posts

- {{ end }} - {{ $cs := .CurrentSection }} - {{ with $cs }} - {{ range (where .Site.RegularPages "Section" .Section) }} - {{ if .IsDescendant $cs }} + {{- end }} + {{- $cs := .CurrentSection }} + {{- with $cs }} + {{- range (where .Site.RegularPages "Section" .Section) }} + {{- if .IsDescendant $cs }}

{{ if .Draft }}(Draft) {{ end }}{{ .Title }}

- {{ if eq .Date.IsZero false }} + {{- if eq .Date.IsZero false }} - {{ end }} - {{ if (and (eq .Lastmod.IsZero false) (ne .Lastmod .Date)) }} + {{- end }} + {{- if (and (eq .Lastmod.IsZero false) (ne .Lastmod .Date)) }} (updated) - {{ end }} + {{- end }}
@@ -34,12 +34,12 @@

{{ .Summary }}

- {{ if .Truncated }} + {{- if .Truncated }} Read More… - {{ end }} + {{- end }}
- {{ end }} - {{ end }} - {{ end }} + {{- end }} + {{- end }} + {{- end }} {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9c651ca..f719484 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -3,12 +3,12 @@

{{ if .Draft }}(Draft) {{ end }}{{ .Title }}

- {{ if eq .Date.IsZero false }} + {{- if eq .Date.IsZero false }} - {{ end }} - {{ if (and (eq .Lastmod.IsZero false) (ne .Lastmod .Date)) }} + {{- end }} + {{- if (and (eq .Lastmod.IsZero false) (ne .Lastmod .Date)) }} — last updated - {{ end }} + {{- end }}
{{ .Content }}