diff --git a/layouts/_default/home.html b/layouts/_default/home.html index b37e4d14..03b6e77a 100644 --- a/layouts/_default/home.html +++ b/layouts/_default/home.html @@ -2,21 +2,21 @@ {{ partial "paige-title.html" . }} {{ partial "paige-description.html" . }} {{ partial "paige-date.html" . }} -{{ if .Params.stretch }} -
+{{ with .Params.stretch }} + {{ end }} -{{ if .Params.center }} +{{ with .Params.center }}
-
+
{{ .Params.blurb | markdownify }}
+{{ . | markdownify }}
{{ .Description | markdownify }}
+{{ with .Description }} +{{ . | markdownify }}
{{ end }} diff --git a/layouts/partials/paige-link.html b/layouts/partials/paige-link.html index 6cf76b67..84298fa9 100644 --- a/layouts/partials/paige-link.html +++ b/layouts/partials/paige-link.html @@ -1,10 +1,10 @@ -{{ if .Site.Params.paigebootstrapcss }} - +{{ with .Site.Params.paigebootstrapcss }} + {{ else }} {{ end }} -{{ if .Site.Params.paigebootstrapicons }} - +{{ with .Site.Params.paigebootstrapicons }} + {{ else }} {{ end }} diff --git a/layouts/partials/paige-meta.html b/layouts/partials/paige-meta.html index 9864c8bd..629b10a5 100644 --- a/layouts/partials/paige-meta.html +++ b/layouts/partials/paige-meta.html @@ -1,9 +1,9 @@ -{{ if .Site.Author.name }} - +{{ with .Site.Author.name }} + {{ end }} -{{ if .Description }} - +{{ with .Description }} + {{ end }} {{ if or .Keywords .Params.tags .Params.categories }} diff --git a/layouts/partials/paige-pages.html b/layouts/partials/paige-pages.html index 7b53ebcb..011150b9 100644 --- a/layouts/partials/paige-pages.html +++ b/layouts/partials/paige-pages.html @@ -6,15 +6,15 @@ {{ range .Pages }}
{{ .Title | markdownify }}
- {{ if .Description }}
+ {{ with .Description }}
- {{ .Description | markdownify }}
+ {{ . | markdownify }}
{{ end }}