From 0c85b94f9f9433eba481a8248c469b33b53286fc Mon Sep 17 00:00:00 2001 From: earnest ma Date: Thu, 11 Feb 2021 23:33:35 -0500 Subject: [PATCH 1/8] 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 }} -- 2.34.1 From 2e43086436f95960e6ea648363c2b1cbee07ec4e Mon Sep 17 00:00:00 2001 From: earnest ma Date: Thu, 11 Feb 2021 23:34:25 -0500 Subject: [PATCH 2/8] fix: Gemini lastmod and published date --- layouts/blog/single.gmi | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/layouts/blog/single.gmi b/layouts/blog/single.gmi index 83430e7..7604b63 100644 --- a/layouts/blog/single.gmi +++ b/layouts/blog/single.gmi @@ -1,11 +1,10 @@ # {{ $.Title | safeHTML }} -{{ if .Lastmod }}{{ if not (eq .Lastmod .Date )}} -Published on {{ .Date.Format "Jan 02, 2006" }}, updated {{ dateFormat "2006-01-02" .Lastmod.Local }}. -{{ end }} -{{ else }} +{{ if ne .Lastmod .Date -}} +Published on {{ .Date.Format "Jan 02, 2006" }}, updated {{ dateFormat "2006-01-02" .Lastmod }}. +{{- else -}} Published on {{ .Date.Format "Jan 02, 2006" }}. -{{ end }} +{{- end }} {{ trim (readFile (replace $.File.Path ".md" ".gmi")) "\n" | safeHTML }} -- 2.34.1 From bac71ad4705433478ca5531ac8b020e74b9ed3d4 Mon Sep 17 00:00:00 2001 From: earnest ma Date: Fri, 19 Feb 2021 10:30:25 -0500 Subject: [PATCH 3/8] fix: Gemini post post links spacing --- layouts/blog/single.gmi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/blog/single.gmi b/layouts/blog/single.gmi index 7604b63..d79b5bf 100644 --- a/layouts/blog/single.gmi +++ b/layouts/blog/single.gmi @@ -24,6 +24,6 @@ Published on {{ .Date.Format "Jan 02, 2006" }}. {{- with .OutputFormats.Get "html" }} => {{ .Permalink }} See “{{ $.Title | safeHTML }}” on the WWW {{- end }} -{{- with .Params.comments }}=> https://{{ .host }}/@{{ .user }}/{{ .id }} You may comment here{{ end }} +{{ with .Params.comments }}=> https://{{ .host }}/@{{ .user }}/{{ .id }} You may comment here{{ end }} {{ .Site.Copyright }} -- 2.34.1 From 1163b39d2a9f4b71c9ebb2850fc6d7a1a8b4684a Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 8 Mar 2021 23:04:00 +0000 Subject: [PATCH 4/8] Add renovate.json --- renovate.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..39a2b6e --- /dev/null +++ b/renovate.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base" + ] +} -- 2.34.1 From 6985940c2067d1e8b49e40d7691a46a62109a4c9 Mon Sep 17 00:00:00 2001 From: earnest ma Date: Fri, 12 Mar 2021 22:42:22 -0500 Subject: [PATCH 5/8] chore(deps): Bump DOMPurify to version 2.2.7 --- layouts/partials/fedi-comments.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/fedi-comments.html b/layouts/partials/fedi-comments.html index 4475ddc..f441b0f 100644 --- a/layouts/partials/fedi-comments.html +++ b/layouts/partials/fedi-comments.html @@ -17,7 +17,7 @@

- +