From dd70d2fa0b4647771713853577ed175e21dca92e55dd31deee41d93628f920b5 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Fri, 25 Aug 2023 00:00:00 +0000 Subject: Remove EOLs in embedded layouts --- layouts/_default/single.gmi | 2 +- layouts/_default/single.html | 2 +- layouts/index.gmi | 2 +- layouts/index.html | 2 +- layouts/partials/footer.gmi | 2 +- layouts/partials/metadata.gmi | 2 +- layouts/partials/metadata.html | 2 +- layouts/partials/pageinfo.html | 2 +- layouts/taxonomy/taxonomy.gmi | 2 +- layouts/taxonomy/taxonomy.html | 2 +- layouts/term/term.gmi | 2 +- layouts/term/term.html | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) (limited to 'layouts') diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index b145439..3f31051 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -85,4 +85,4 @@ {{- end }} {{- end }} -{{- end }} +{{- end }} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 7486597..52e7ad4 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -8,4 +8,4 @@

{{ .Name }}

{{ .Content -}} -{{- end }} +{{- end }} \ No newline at end of file diff --git a/layouts/index.gmi b/layouts/index.gmi index 8ace600..ea867d2 100644 --- a/layouts/index.gmi +++ b/layouts/index.gmi @@ -18,4 +18,4 @@ {{ range last 1 (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse -}} {{ partial "metadata.gmi" . -}} {{ end -}} -{{ end }} +{{ end }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 870c22b..e42e751 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -19,4 +19,4 @@ {{ partial "metadata.html" . -}} {{ end -}} -{{- end }} +{{- end }} \ No newline at end of file diff --git a/layouts/partials/footer.gmi b/layouts/partials/footer.gmi index cb45be3..338e88e 100644 --- a/layouts/partials/footer.gmi +++ b/layouts/partials/footer.gmi @@ -1 +1 @@ -{{ replace $.Site.Copyright "{currentYear}" (now.Format "2006") | safeHTML }} +{{ replace $.Site.Copyright "{currentYear}" (now.Format "2006") | safeHTML }} \ No newline at end of file diff --git a/layouts/partials/metadata.gmi b/layouts/partials/metadata.gmi index 5c137bf..1f8f513 100644 --- a/layouts/partials/metadata.gmi +++ b/layouts/partials/metadata.gmi @@ -1,2 +1,2 @@ {{- partial "pageinfo.gmi" . }} -=> {{ .RelPermalink | replaceRE `(?m)index.gmi` "" }} {{ emojify ":link:" | safeHTML }} {{ .Title | safeHTML }} +=> {{ .RelPermalink | replaceRE `(?m)index.gmi` "" }} {{ emojify ":link:" | safeHTML }} {{ .Title | safeHTML }} \ No newline at end of file diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html index ea9712a..47106e8 100644 --- a/layouts/partials/metadata.html +++ b/layouts/partials/metadata.html @@ -3,4 +3,4 @@

{{ partial "pageinfo.html" . }}
{{ emojify ":link:" }} {{ .Title }}

- + \ No newline at end of file diff --git a/layouts/partials/pageinfo.html b/layouts/partials/pageinfo.html index a65136a..7378049 100644 --- a/layouts/partials/pageinfo.html +++ b/layouts/partials/pageinfo.html @@ -1,2 +1,2 @@ {{ $dateFormat := .Site.Params.dateFormat | default ":date_long" -}} -{{ emojify ":calendar:" | safeHTML }} {{ .Page.PublishDate | time.Format $dateFormat | safeHTML }} | {{ emojify ":stopwatch:" | safeHTML }} {{ i18n "readingTime" .ReadingTime | safeHTML }}{{ if (.Param (lower (i18n "tags"))) }} | {{ emojify ":label:" | safeHTML }} {{ end }}{{ range $key, $val := (.Param (lower (i18n "tags"))) }}{{ if $key }}, {{ end }}{{ $val }}{{ end }} +{{ emojify ":calendar:" | safeHTML }} {{ .Page.PublishDate | time.Format $dateFormat | safeHTML }} | {{ emojify ":stopwatch:" | safeHTML }} {{ i18n "readingTime" .ReadingTime | safeHTML }}{{ if (.Param (lower (i18n "tags"))) }} | {{ emojify ":label:" | safeHTML }} {{ end }}{{ range $key, $val := (.Param (lower (i18n "tags"))) }}{{ if $key }}, {{ end }}{{ $val }}{{ end }} \ No newline at end of file diff --git a/layouts/taxonomy/taxonomy.gmi b/layouts/taxonomy/taxonomy.gmi index ecca4d8..63f7163 100644 --- a/layouts/taxonomy/taxonomy.gmi +++ b/layouts/taxonomy/taxonomy.gmi @@ -10,4 +10,4 @@ {{- range .Data.Pages }} => {{ .RelPermalink | replaceRE `(?m)index.gmi$` "" }} {{ emojify ":link:" | safeHTML }} {{ .Title | safeHTML }} {{- end }} -{{- end }} +{{- end }} \ No newline at end of file diff --git a/layouts/taxonomy/taxonomy.html b/layouts/taxonomy/taxonomy.html index 68b4fb5..51e00a3 100644 --- a/layouts/taxonomy/taxonomy.html +++ b/layouts/taxonomy/taxonomy.html @@ -13,4 +13,4 @@ {{- end }} -{{- end }} +{{- end }} \ No newline at end of file diff --git a/layouts/term/term.gmi b/layouts/term/term.gmi index fd8db55..7b4520a 100644 --- a/layouts/term/term.gmi +++ b/layouts/term/term.gmi @@ -14,4 +14,4 @@ {{ range last 1 .Data.Pages.ByPublishDate.Reverse -}} {{ partial "metadata.gmi" . -}} {{ end -}} -{{ end }} +{{ end }} \ No newline at end of file diff --git a/layouts/term/term.html b/layouts/term/term.html index f4ff365..89d31b5 100644 --- a/layouts/term/term.html +++ b/layouts/term/term.html @@ -11,4 +11,4 @@ {{ partial "metadata.html" . -}} {{- end -}} -{{- end }} +{{- end }} \ No newline at end of file -- cgit v1.2.3