diff --git a/layouts/_default/notes.html b/layouts/_default/notes.html index ac4d072..ee1fb54 100644 --- a/layouts/_default/notes.html +++ b/layouts/_default/notes.html @@ -2,6 +2,7 @@

Notes

This is my microblog. These are my short informal posts, sorted by date (newest first). For longer posts, see my blog.

+

An RSS feed for these notes is available.

Timestamp format: YYYY-MM-DD HH:MM:SS, as per RFC 3339

@@ -16,8 +17,8 @@ {{ .Title }} - Posted - {{- if lt .Date .Lastmod -}} + Noted + {{ if gt (sub .Lastmod.Unix .Date.Unix) 3600 -}} , updated {{ .Lastmod.Format "2006-01-02 15:04:05" }} {{- end }}
{{ .Content }}
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index fa78be5..5cc2c28 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -10,6 +10,7 @@ {{- if ge $limit 1 -}} {{- $pages = $pages | first $limit -}} {{- end -}} +{{- $currentSection := .Section -}} {{- printf "" | safeHTML }} @@ -27,7 +28,7 @@ {{ printf "" .Permalink .MediaType | safeHTML }} {{ end }} {{ range where .Site.Pages "Kind" "page" }} - {{ if or (eq .Section "posts") (eq .Section "post") }} + {{ if (eq .Section $currentSection ) }} {{ .Title }} {{ .Permalink }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 101f648..9f1fef5 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -9,7 +9,16 @@ {{ $webmanifest := resources.Get "/manifest.webmanifest" | resources.ExecuteAsTemplate "manifest.webmanifest" . | resources.Minify | resources.Fingerprint "md5" -}} {{- printf `` $webmanifest.RelPermalink | safeHTML }} - + +{{- $isNotes := false -}} +{{- if or (eq .Section "notes") (eq .Title "Notes") -}} +{{- $isNotes = true -}} + +{{- end }} + +{{ if not $isNotes -}} + +{{- end }} {{ .Title }}{{ if and (lt (len .Title) 54) (ne $canonicalRelPermalink "/") }} - Seirdy{{ end }} {{ $description := .Site.Params.Description -}} {{- if .Params.description -}} diff --git a/layouts/partials/post-meta.html b/layouts/partials/post-meta.html index 51e8263..0e2aa1b 100644 --- a/layouts/partials/post-meta.html +++ b/layouts/partials/post-meta.html @@ -1,16 +1,20 @@ -{{ $isNote := (eq .Page.Section "notes") -}} {{- $canonicalRelPermalink := .RelPermalink | replaceRE "^/~seirdy/" "/" -}} +{{- $isNotes := false -}} +{{- $action := "Posted" -}} {{- $logURL := printf "%scontent/%s" .Site.Params.logUrlPrefix .File.Path -}} -{{- if not $isNote -}} +{{- if or (eq .Page.Section "notes") (eq .Page.Title "Notes") -}} + {{- $isNotes = true -}} + {{- $action = "Noted" -}} +{{- else -}} {{- $logURL = $logURL | strings.ReplaceRE `\.md` `.gmi` -}} {{- end -}} -Posted {{ .Date.Format "2006-01-02" }} +{{- $action }} {{ .Date.Format "2006-01-02" }} by {{- partial "indieweb-author.html" -}} on his Website{{- with .OutputFormats.Get "gemtext" -}}{{- printf " " -}}and Gemini capsule{{- end -}}. - {{ if lt .Date .Lastmod -}} + {{ if gt (sub .Lastmod.Unix .Date.Unix) 3600 -}}
Last updated . Changelog. {{- end }} - {{ if not $isNote -}} + {{ if not $isNotes -}}
{{ partial "wordcount.html" . -}} {{ end }} diff --git a/layouts/partials/posts.html b/layouts/partials/posts.html index 0ccbb9f..f5f80ea 100644 --- a/layouts/partials/posts.html +++ b/layouts/partials/posts.html @@ -6,6 +6,7 @@

Posts

These are all of my posts, sorted by date (newest first).

+

An RSS feed for these posts is available.

{{- else -}}

Posts

diff --git a/layouts/partials/prev-next.html b/layouts/partials/prev-next.html index 8146ed8..bfb2603 100644 --- a/layouts/partials/prev-next.html +++ b/layouts/partials/prev-next.html @@ -7,7 +7,7 @@

Continue reading