From b52fac69b19a139ab54b7cee72c49c40ca2a41e1 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 24 Nov 2016 14:39:39 +0200 Subject: [PATCH] layouts: retab after addition of modelines Done in vim using `gg=G` and then `:retab`. --- layouts/_default/baseof.html | 68 ++++++++++++++-------------- layouts/_default/list.html | 38 ++++++++-------- layouts/_default/single.html | 46 +++++++++---------- layouts/partials/cookie-consent.html | 34 +++++++------- layouts/partials/disqus.html | 16 +++---- layouts/partials/head-meta.html | 34 +++++++------- layouts/partials/meta-terms.html | 4 +- layouts/partials/sharing-icons.html | 24 +++++----- 8 files changed, 132 insertions(+), 132 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 86274e7..0aa2dfe 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,7 +1,7 @@ - + {{ partial "head-meta.html" . }} @@ -27,61 +27,61 @@ {{ partial "head-custom.html" . }} - + -
-
- +
- -
+
+
+

{{ .Site.Title | safeHTML }}

+ {{ if .Site.Params.description }}

{{ .Site.Params.description | markdownify }}

{{ end }} +
+
+
-

{{ .Site.Title | safeHTML }}

- {{ if .Site.Params.description }}

{{ .Site.Params.description | markdownify }}

{{ end }} -
-
+
+
-
-
-
+ {{ block "main" . }} + + {{ end }} - {{ block "main" . }} - - {{ end }} +
{{ "" | safeHTML }} -
{{ "" | safeHTML }} + {{ partial "sidebar.html" . }} - {{ partial "sidebar.html" . }} +
{{ "" | safeHTML }} +
{{ "" | safeHTML }} -
{{ "" | safeHTML }} - {{ "" | safeHTML }} - - - + diff --git a/layouts/_default/list.html b/layouts/_default/list.html index da128fd..60d6295 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,26 +1,26 @@ {{ define "main" }} - {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} - {{ range $paginator.Pages }} - {{ .Render "summary" }} - {{ end }} +{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} +{{ range $paginator.Pages }} +{{ .Render "summary" }} +{{ end }} - {{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} - +{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} + +{{ end }} {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 5846eb8..e64fa93 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,31 +2,31 @@ {{ define "main" }} {{ $dateFormat := default "Mon Jan 2, 2006" (index .Site.Params "date_format") }} -
-
-

{{ .Title | markdownify }}

- -
- {{ .Content }} +
+
+

{{ .Title | markdownify }}

+ +
+ {{ .Content }} - {{ if .IsTranslated }} -

{{ i18n "translations" }}

- - {{ end }} - {{ if not .Site.Params.sharingicons.hide }} - {{ partial "sharing-icons.html" . }} - {{ end }} -
- - {{ if .Site.DisqusShortname }} - {{ partial "disqus.html" . }} + {{ if .IsTranslated }} +

{{ i18n "translations" }}

+ {{ end }} + {{ if not .Site.Params.sharingicons.hide }} + {{ partial "sharing-icons.html" . }} + {{ end }} +
+ +{{ if .Site.DisqusShortname }} +{{ partial "disqus.html" . }} +{{ end }} {{ end }} diff --git a/layouts/partials/cookie-consent.html b/layouts/partials/cookie-consent.html index 5440ccb..46e3ba8 100644 --- a/layouts/partials/cookie-consent.html +++ b/layouts/partials/cookie-consent.html @@ -3,24 +3,24 @@ {{- /* vim: set ts=2 sw=2 et: */}} diff --git a/layouts/partials/disqus.html b/layouts/partials/disqus.html index e7dc137..3334ae1 100644 --- a/layouts/partials/disqus.html +++ b/layouts/partials/disqus.html @@ -2,15 +2,15 @@ diff --git a/layouts/partials/head-meta.html b/layouts/partials/head-meta.html index c0d6901..c59959f 100644 --- a/layouts/partials/head-meta.html +++ b/layouts/partials/head-meta.html @@ -1,24 +1,24 @@ - - - - {{ "" | safeHTML }} + + + +{{ "" | safeHTML }} - {{ template "_internal/opengraph.html" . }} - {{ template "_internal/schema.html" . }} - {{ template "_internal/twitter_cards.html" . }} +{{ template "_internal/opengraph.html" . }} +{{ template "_internal/schema.html" . }} +{{ template "_internal/twitter_cards.html" . }} - {{ if .Site.Params.google_verify_meta }} - - {{ end }} +{{ if .Site.Params.google_verify_meta }} + +{{ end }} - {{ if .Site.Params.bing_verify_meta }} - - {{ end }} +{{ if .Site.Params.bing_verify_meta }} + +{{ end }} - {{ if .Site.Params.yandex_verify_meta }} - - {{ end }} +{{ if .Site.Params.yandex_verify_meta }} + +{{ end }} - {{ .Hugo.Generator }} +{{ .Hugo.Generator }} {{- /* vim: set ts=2 sw=2 et: */}} diff --git a/layouts/partials/meta-terms.html b/layouts/partials/meta-terms.html index 9877ef7..897802a 100644 --- a/layouts/partials/meta-terms.html +++ b/layouts/partials/meta-terms.html @@ -1,8 +1,8 @@ {{ if .Params.categories }} -  {{ range $index, $category := .Params.categories }}{{ if gt $index 0 }}, {{ end }}{{ . }}{{ end }} + {{ range $index, $category := .Params.categories }}{{ if gt $index 0 }}, {{ end }}{{ . }}{{ end }} {{ end }} {{ if .Params.tags }} -  {{ range $index, $tag := .Params.tags }}{{ if gt $index 0 }}, {{ end }}{{ end }} + {{ range $index, $tag := .Params.tags }}{{ if gt $index 0 }}, {{ end }}{{ end }} {{ end }} {{- /* vim: set ts=2 sw=2 et: */}} diff --git a/layouts/partials/sharing-icons.html b/layouts/partials/sharing-icons.html index 04dbca1..1532f9b 100644 --- a/layouts/partials/sharing-icons.html +++ b/layouts/partials/sharing-icons.html @@ -1,14 +1,14 @@ -
- +
+ {{- /* vim: set ts=2 sw=2 et: */}}