diff --git a/changelog.md b/changelog.md index 8a5f9d8..edd6097 100644 --- a/changelog.md +++ b/changelog.md @@ -1,40 +1,23 @@ # Changelog -## 0.3.2 - 2021-03-12 - -Minor fixes to the Gemini side of things and dependencies. - -``` -earnest ma (5): - format: Fix whitespace - fix: Gemini lastmod and published date - fix: Gemini post post links spacing - chore(deps): Bump DOMPurify to version 2.2.7 - chore: Fix changelog -``` - ## 0.3.1 - 2021-02-11 Just minor fixes to tags and links. -``` earnest ma (3): chore: Use non-WWW links fix! Broken link fix: Leftover -``` ## 0.3.0 - 2021-02-10 In this release, basic support for output to Gemini was added, as well as Hugo theme metadata and an exampleSite. Improvements are always welcome. -``` earnest ma (4): chore: Bump version feat: Add support for gemini docs: Add exampleSite and theme metadata chore: Update readme.md -``` ## 0.2.0 - 2021-02-05 diff --git a/layouts/blog/single.gmi b/layouts/blog/single.gmi index d79b5bf..ae72845 100644 --- a/layouts/blog/single.gmi +++ b/layouts/blog/single.gmi @@ -1,10 +1,11 @@ # {{ $.Title | safeHTML }} -{{ if ne .Lastmod .Date -}} -Published on {{ .Date.Format "Jan 02, 2006" }}, updated {{ dateFormat "2006-01-02" .Lastmod }}. -{{- else -}} +{{ if .Lastmod }}{{ if not (eq .Lastmod .Date )}} +Published on {{ .Date.Format "Jan 02, 2006" }}, updated {{ dateFormat "2006-01-02" .Lastmod.Local }}. +{{ end }} +{{ else }} Published on {{ .Date.Format "Jan 02, 2006" }}. -{{- end }} +{{ end }} {{ trim (readFile (replace $.File.Path ".md" ".gmi")) "\n" | safeHTML }} @@ -21,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 }} +{{ 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 1e8f071..d8476f8 100644 --- a/layouts/index.gmi +++ b/layouts/index.gmi @@ -2,12 +2,13 @@ ## 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 }} diff --git a/layouts/partials/fedi-comments.html b/layouts/partials/fedi-comments.html index f441b0f..4475ddc 100644 --- a/layouts/partials/fedi-comments.html +++ b/layouts/partials/fedi-comments.html @@ -17,7 +17,7 @@
- +