diff --git a/content/_index.md b/content/_index.md index 2fb63f3..9cf8a6d 100644 --- a/content/_index.md +++ b/content/_index.md @@ -2,6 +2,7 @@ outputs: - html - gemtext + - atom title: Seirdy's Home description: "Seirdy's Home: personal website and blog for Rohan Kumar, A.K.A. Seirdy. I write about and develop software to promote user autonomy." sitemap: diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index 1d8ffed..e770f69 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -1,11 +1,12 @@ {{- $pages := (where site.RegularPages "Section" .Section) -}} -{{- if .IsHome }} - {{- $pages = .Site.RegularPages -}} -{{ end -}} -{{- $type := "article" -}} {{- $period := "daily" -}} +{{- $title := .Section | humanize -}} +{{- if .IsHome }} + {{- $title = "All content" -}} + {{- $pages = .Site.RegularPages -}} + {{- $period = "hourly" -}} +{{ end -}} {{- if eq .Section "notes" -}} - {{- $type = "note" -}} {{- $period = "hourly" -}} {{- end -}} {{- $icon_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" -}} @@ -20,7 +21,7 @@ xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="{{ .Site.LanguageCode }}"> - {{ .Section | humanize}} on {{ .Site.Title }} + {{ $title }} on {{ .Site.Title }} {{ $icon_png.Permalink }} {{ .Site.Params.icon | absURL }} @@ -62,6 +63,10 @@ {{ partial "processed-content.html" . | replaceRE `(?: )?(?:item(type|scope|prop|id|ref)="[^"]*"|class="language-figure")` "" | safeHTML }} + {{- $type := "article" -}} + {{- if eq .Section "notes" -}} + {{- $type = "note" -}} + {{- end -}} http://activitystrea.ms/schema/1.0/{{ $type }} http://activitystrea.ms/schema/1.0/post diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 50d4c06..1b00d6d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -21,14 +21,18 @@ {{ $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 -}} - + {{- else if or (eq .Section "posts") (eq .Title "Posts") -}} + + + + {{- else -}} + + + {{- end }} {{ .Title }}{{ if and (lt (len .Title) 54) (ne $canonicalRelPermalink "/") }} - Seirdy{{ end }} {{ $description := .Site.Params.Description -}}