2022-05-27 01:57:49 +00:00
|
|
|
{{- $pages := (where site.RegularPages "Section" .Section) -}}
|
2022-06-06 19:16:33 +00:00
|
|
|
{{- $period := "daily" -}}
|
|
|
|
{{- $title := .Section | humanize -}}
|
2022-08-02 04:28:32 +00:00
|
|
|
{{- if .IsHome -}}
|
2022-06-06 19:16:33 +00:00
|
|
|
{{- $title = "All content" -}}
|
2022-06-18 03:53:19 +00:00
|
|
|
{{- $pages = where .Site.RegularPages "Date" "!=" (time "0001-01-01") -}}
|
2022-06-06 19:16:33 +00:00
|
|
|
{{- $period = "hourly" -}}
|
2022-08-02 04:28:32 +00:00
|
|
|
{{- end -}}
|
2022-06-03 00:25:52 +00:00
|
|
|
{{- if eq .Section "notes" -}}
|
|
|
|
{{- $period = "hourly" -}}
|
|
|
|
{{- end -}}
|
2023-12-08 23:10:41 +00:00
|
|
|
{{- $faviconSvg := partialCached "cache-bust.html" "/favicon.svg" "/favicon.svg" -}}
|
|
|
|
{{- $image := partialCached "cache-bust.html" "/favicon192.png" "/favicon192.png" -}}
|
|
|
|
{{- $atomLogo := partial "cache-bust.html" "/atom.svg" -}}
|
2023-11-29 21:37:17 +00:00
|
|
|
{{- /*rejected http://backend.userland.com/creativeCommonsRssModule, as it's completely redundant with <rights> and rel-license. */ -}}
|
2022-05-27 01:57:49 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
2022-06-03 00:25:52 +00:00
|
|
|
<feed
|
|
|
|
xmlns="http://www.w3.org/2005/Atom"
|
|
|
|
xmlns:activity="http://activitystrea.ms/spec/1.0/"
|
2023-12-04 05:53:29 +00:00
|
|
|
xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005"
|
2022-06-03 00:25:52 +00:00
|
|
|
xmlns:media="http://search.yahoo.com/mrss/"
|
|
|
|
xmlns:ostatus="http://ostatus.org/schema/1.0"
|
|
|
|
xmlns:poco="http://portablecontacts.net/spec/1.0"
|
2023-11-25 20:55:43 +00:00
|
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
2022-06-03 00:25:52 +00:00
|
|
|
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
|
2023-11-27 07:45:45 +00:00
|
|
|
xmlns:thr="http://purl.org/syndication/thread/1.0"
|
2023-12-04 05:53:29 +00:00
|
|
|
xmlns:webfeeds="http://webfeeds.org/rss/1.0"
|
|
|
|
xml:lang="{{ .Site.LanguageCode }}">
|
|
|
|
<cf:treatAs>list</cf:treatAs>
|
|
|
|
<cf:listinfo>
|
|
|
|
<cf:sort
|
|
|
|
ns="http://www.w3.org/2005/Atom"
|
|
|
|
element="published" data-type="date" label="Date published" default="true"/>
|
|
|
|
</cf:listinfo>
|
2022-06-06 19:16:33 +00:00
|
|
|
<title>{{ $title }} on {{ .Site.Title }}</title>
|
2022-07-13 05:55:45 +00:00
|
|
|
<subtitle>
|
|
|
|
{{- if .Params.Description -}}
|
|
|
|
{{- .Params.Description -}}
|
|
|
|
{{- else -}}
|
|
|
|
{{- .Site.Params.Description -}}
|
|
|
|
{{- end -}}
|
|
|
|
</subtitle>
|
2022-08-02 04:28:32 +00:00
|
|
|
<link rel="self" type="application/atom+xml" href="{{ .Permalink }}atom.xml" />
|
2023-12-01 08:19:31 +00:00
|
|
|
{{ with .Site.Params.Hub -}}
|
2023-11-29 21:37:17 +00:00
|
|
|
<link rel="hub" href="{{ .Site.Params.Hub }}" />
|
2023-12-01 08:19:31 +00:00
|
|
|
{{- end }}
|
2023-11-29 03:45:12 +00:00
|
|
|
<icon>{{ $faviconSvg.Permalink }}</icon>
|
|
|
|
<webfeeds:icon>{{ $image.Permalink }}</webfeeds:icon>
|
|
|
|
<webfeeds:cover>{{ $atomLogo.Permalink }}</webfeeds:cover>
|
|
|
|
<logo>{{ $atomLogo.Permalink }}</logo>
|
2023-11-27 07:45:45 +00:00
|
|
|
<webfeeds:accentColor>191919</webfeeds:accentColor>
|
2023-11-29 12:12:31 +00:00
|
|
|
<webfeeds:related layout="card" target="browser" />
|
2022-06-03 00:25:52 +00:00
|
|
|
<sy:updatePeriod>{{ $period }}</sy:updatePeriod>
|
|
|
|
<sy:updateFrequency>2</sy:updateFrequency>
|
2022-05-27 01:57:49 +00:00
|
|
|
<author>
|
2022-06-03 00:25:52 +00:00
|
|
|
<activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
|
2023-11-25 20:55:43 +00:00
|
|
|
<poco:preferredUsername>{{ .Site.Author.name }}</poco:preferredUsername>
|
|
|
|
<poco:displayName>{{ .Site.Author.nick }}</poco:displayName>
|
|
|
|
<name>{{ .Site.Author.name }}</name>
|
2023-11-27 17:33:41 +00:00
|
|
|
<email>{{ .Site.Author.email }}</email>
|
2022-05-27 01:57:49 +00:00
|
|
|
<uri>https://seirdy.one/</uri>
|
|
|
|
</author>
|
2024-01-11 14:02:26 +00:00
|
|
|
<admin:errorReportsTo xmlns:admin="http://webns.net/mvcb/" rdf:resource="mailto:{{ .Site.Author.email }}" />
|
2023-12-01 08:18:06 +00:00
|
|
|
<rights type="text">Copyright © {{ now.Year }} Rohan Kumar</rights>
|
2023-11-27 07:45:45 +00:00
|
|
|
<link rel="license" type="application/rdf+xml" href="https://creativecommons.org/licenses/by-sa/4.0/rdf" />
|
2023-11-29 13:52:05 +00:00
|
|
|
<updated>{{ site.LastChange.UTC.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
2023-11-28 03:36:36 +00:00
|
|
|
<generator uri="https://gohugo.io/" version="{{ .Site.Hugo.Version }}">Hugo {{ .Site.Hugo.Version }}</generator>
|
2022-05-27 01:57:49 +00:00
|
|
|
<id>{{ .Permalink }}</id>
|
2022-07-11 22:24:48 +00:00
|
|
|
{{ range $pages -}}
|
2022-08-02 04:28:32 +00:00
|
|
|
{{- if not .Params.Private -}}
|
2022-05-27 01:57:49 +00:00
|
|
|
<entry>
|
2022-06-03 00:25:52 +00:00
|
|
|
<title>{{ .Title }}</title>
|
2023-11-27 07:45:45 +00:00
|
|
|
<link rel="alternate" type="text/html" href="{{ .Permalink }}" />
|
|
|
|
<id>{{ .Permalink }}</id>
|
2023-11-29 13:52:05 +00:00
|
|
|
<published>{{ .Date.UTC.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published>
|
|
|
|
<updated>{{ .Lastmod.UTC.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
2023-12-13 10:38:03 +00:00
|
|
|
<author>
|
|
|
|
<name>{{ .Site.Author.name }}</name>
|
|
|
|
<uri>https://seirdy.one/</uri>
|
|
|
|
<email>{{ .Site.Author.email }}</email>
|
|
|
|
</author>
|
2023-12-02 00:59:06 +00:00
|
|
|
<rights type="text">Copyright © {{ now.Year }} Rohan Kumar</rights>
|
2023-11-27 07:45:45 +00:00
|
|
|
<link rel="license" type="application/rdf+xml" href="https://creativecommons.org/licenses/by-sa/4.0/rdf" />
|
2022-08-02 04:28:32 +00:00
|
|
|
{{- with .Params.replyURI -}}
|
2023-12-03 15:34:04 +00:00
|
|
|
<thr:in-reply-to ref="{{ . }}" href="{{ . }}" type="text/html" />
|
|
|
|
<link rel="related" type="text/html" href="{{ . }}" />
|
2022-06-03 00:25:52 +00:00
|
|
|
{{- end -}}
|
2022-08-02 04:28:32 +00:00
|
|
|
{{- with .Params.replyAuthorURI -}}
|
2022-06-03 00:25:52 +00:00
|
|
|
<link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/person" href="{{ . }}"/>
|
|
|
|
{{- end -}}
|
2022-06-06 19:16:33 +00:00
|
|
|
{{- $type := "article" -}}
|
2023-12-04 05:53:29 +00:00
|
|
|
{{- /* TODO: add bookmark type and convert bookmarks to their own post types. */ -}}
|
|
|
|
{{- if eq .Section "notes" -}}
|
2022-06-06 19:16:33 +00:00
|
|
|
{{- $type = "note" -}}
|
|
|
|
{{- end -}}
|
2022-06-03 00:25:52 +00:00
|
|
|
<activity:object-type>http://activitystrea.ms/schema/1.0/{{ $type }}</activity:object-type>
|
|
|
|
<activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
|
2022-08-02 04:28:32 +00:00
|
|
|
{{- with .Params.image -}}
|
2024-06-22 16:36:08 +00:00
|
|
|
{{- $thumbnail := partial "cache-bust.html" (printf "/p/%s" . ) -}}
|
|
|
|
<media:thumbnail url="{{ $thumbnail.Permalink }}" width="{{ $thumbnail.Width }}" height="{{ $thumbnail.Height }}" />
|
2022-08-02 04:28:32 +00:00
|
|
|
{{- end -}}
|
2023-11-29 13:09:39 +00:00
|
|
|
{{ with .Description -}}
|
|
|
|
<summary type="text">{{ . }}</summary>
|
|
|
|
{{- end }}
|
2022-08-02 04:28:32 +00:00
|
|
|
<content type="xhtml" xml:base="{{ .Permalink }}">
|
|
|
|
<div xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
{{- if .Params.replyURI -}}
|
|
|
|
{{- partial "reply-context" .Params | replaceRE `(?: )?(?:item(type|scope|prop|id|ref)="[^"]*"|class="language-figure")` "" | safeHTML }}
|
|
|
|
{{- end -}}
|
|
|
|
{{ partial "processed-content.html" . | replaceRE `(?: )?(?:item(type|scope|prop|id|ref)="[^"]*"|class="language-figure")` "" | replaceRE `<meta content="true" ?/>` "" | safeHTML -}}
|
|
|
|
</div>
|
|
|
|
</content>
|
2023-12-04 05:53:29 +00:00
|
|
|
{{- /* TODO: add application/atom+xml version of comments. */ -}}
|
|
|
|
<link
|
|
|
|
rel="replies" type="text/html"
|
|
|
|
href="{{ .Permalink }}#webmentions"
|
|
|
|
thr:count="{{ .Page.Scratch.Get "webmentionCount" }}" />
|
2023-12-03 15:34:04 +00:00
|
|
|
<thr:total>{{ .Page.Scratch.Get "webmentionCount" }}</thr:total>
|
2022-08-02 04:28:32 +00:00
|
|
|
</entry>
|
|
|
|
{{ end -}}
|
2022-08-02 03:52:35 +00:00
|
|
|
{{- end }}
|
2022-05-27 01:57:49 +00:00
|
|
|
</feed>
|