From 0c85b94f9f9433eba481a8248c469b33b53286fc Mon Sep 17 00:00:00 2001 From: earnest ma Date: Thu, 11 Feb 2021 23:33:35 -0500 Subject: [PATCH] format: Fix whitespace --- layouts/blog/single.gmi | 6 +++--- layouts/index.gmi | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/layouts/blog/single.gmi b/layouts/blog/single.gmi index ae72845..83430e7 100644 --- a/layouts/blog/single.gmi +++ b/layouts/blog/single.gmi @@ -22,9 +22,9 @@ Published on {{ .Date.Format "Jan 02, 2006" }}. ``` => / Return to the homepage -{{ with .OutputFormats.Get "html" }} +{{- with .OutputFormats.Get "html" }} => {{ .Permalink }} See “{{ $.Title | safeHTML }}” on the WWW -{{ end }} -{{ with .Params.comments }}=> https://{{ .host }}/@{{ .user }}/{{ .id }} You may comment here{{ end }} +{{- end }} +{{- with .Params.comments }}=> https://{{ .host }}/@{{ .user }}/{{ .id }} You may comment here{{ end }} {{ .Site.Copyright }} diff --git a/layouts/index.gmi b/layouts/index.gmi index d8476f8..1e8f071 100644 --- a/layouts/index.gmi +++ b/layouts/index.gmi @@ -2,13 +2,12 @@ ## Blog Posts -{{ with .OutputFormats.Get "html" }} +{{ with .OutputFormats.Get "html" -}} => {{ .Permalink }} More posts on WWW -{{ end }} +{{- end -}} {{ range (where .Site.RegularPages "Section" "blog") }} {{- if .OutputFormats.Get "gemtext" }} => {{ replace .Permalink "/gemini" "" 1 }} {{ .Date.Format "Jan 02, 2006" }}: {{ .Title | safeHTML }}{{ end }}{{ end }} - {{ .Site.Copyright }}