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-05-27 01:57:49 +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-05-27 01:57:49 +00:00
|
|
|
{{ end -}}
|
2022-06-03 00:25:52 +00:00
|
|
|
{{- if eq .Section "notes" -}}
|
|
|
|
{{- $period = "hourly" -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- $icon_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" -}}
|
2022-06-06 15:49:11 +00:00
|
|
|
{{- $icon_png := resources.Get "/favicon192.png" | resources.Fingerprint "md5" -}}
|
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/"
|
|
|
|
xmlns:media="http://search.yahoo.com/mrss/"
|
|
|
|
xmlns:ostatus="http://ostatus.org/schema/1.0"
|
|
|
|
xmlns:poco="http://portablecontacts.net/spec/1.0"
|
|
|
|
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
|
|
|
|
xmlns:thr="http://purl.org/syndication/thread/1.0"
|
|
|
|
xml:lang="{{ .Site.LanguageCode }}">
|
2022-06-06 19:16:33 +00:00
|
|
|
<title>{{ $title }} on {{ .Site.Title }}</title>
|
2022-05-27 01:57:49 +00:00
|
|
|
<link rel="self" type="application/atom+xml" href="{{ .Permalink }}atom.xml" />
|
2022-06-03 00:25:52 +00:00
|
|
|
<logo>{{ $icon_png.Permalink }}</logo>
|
2022-05-27 01:57:49 +00:00
|
|
|
<icon>{{ .Site.Params.icon | absURL }}</icon>
|
2022-07-13 05:55:45 +00:00
|
|
|
<subtitle>
|
|
|
|
{{- if .Params.Description -}}
|
|
|
|
{{- .Params.Description -}}
|
|
|
|
{{- else -}}
|
|
|
|
{{- .Site.Params.Description -}}
|
|
|
|
{{- end -}}
|
|
|
|
</subtitle>
|
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>
|
|
|
|
<poco:preferredUsername>Seirdy</poco:preferredUsername>
|
|
|
|
<poco:displayName>Seirdy</poco:displayName>
|
2022-05-27 01:57:49 +00:00
|
|
|
<name>Rohan Kumar</name>
|
|
|
|
<uri>https://seirdy.one/</uri>
|
|
|
|
</author>
|
|
|
|
<updated>{{ now.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
|
|
|
<id>{{ .Permalink }}</id>
|
2022-07-11 22:24:48 +00:00
|
|
|
{{ range $pages -}}
|
|
|
|
{{- if not .Params.Private }}
|
2022-05-27 01:57:49 +00:00
|
|
|
<entry>
|
2022-06-03 00:25:52 +00:00
|
|
|
<title>{{ .Title }}</title>
|
|
|
|
<link rel="alternate" type="text/html" href="{{ .Permalink }}" />
|
2022-05-27 01:57:49 +00:00
|
|
|
<published>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published>
|
|
|
|
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
|
|
|
<author>
|
|
|
|
<name>Rohan Kumar</name>
|
|
|
|
<uri>https://seirdy.one/</uri>
|
|
|
|
</author>
|
|
|
|
<id>{{ .Permalink }}</id>
|
|
|
|
<rights>CC-BY-SA 4.0 by Rohan Kumar</rights>
|
2022-06-03 00:25:52 +00:00
|
|
|
{{- with .Params.replyURI }}
|
|
|
|
<thr:in-reply-to ref="{{ . }}" href="{{ . }}" />
|
|
|
|
{{- end -}}
|
|
|
|
{{- with .Params.replyAuthorURI }}
|
|
|
|
<link rel="mentioned" ostatus:object-type="http://activitystrea.ms/schema/1.0/person" href="{{ . }}"/>
|
|
|
|
{{- end -}}
|
2022-06-02 00:37:31 +00:00
|
|
|
<content type="xhtml" xml:base="{{ .Permalink }}">
|
2022-06-01 03:35:14 +00:00
|
|
|
<div xmlns="http://www.w3.org/1999/xhtml">
|
2022-06-03 00:25:52 +00:00
|
|
|
{{- if .Params.replyURI -}}
|
|
|
|
{{- partial "reply-context" .Params | replaceRE `(?: )?(?:item(type|scope|prop|id|ref)="[^"]*"|class="language-figure")` "" | safeHTML }}
|
|
|
|
{{- end -}}
|
2022-06-18 05:09:32 +00:00
|
|
|
{{ partial "processed-content.html" . | replaceRE `(?: )?(?:item(type|scope|prop|id|ref)="[^"]*"|class="language-figure")` "" | replaceRE `<meta content="true" ?/>` "" | safeHTML }}
|
2022-06-01 03:35:14 +00:00
|
|
|
</div>
|
|
|
|
</content>
|
2022-06-06 19:16:33 +00:00
|
|
|
{{- $type := "article" -}}
|
|
|
|
{{- if eq .Section "notes" -}}
|
|
|
|
{{- $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 03:52:35 +00:00
|
|
|
{{ with .Params.image -}}
|
|
|
|
{{- $image := resources.Get (printf "/p/%s" . ) | resources.Fingerprint "md5" -}}
|
2022-08-02 04:22:06 +00:00
|
|
|
<media:thumbnail url="{{ $image.Permalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" />
|
2022-08-02 03:52:35 +00:00
|
|
|
{{- end }}
|
2022-05-27 01:57:49 +00:00
|
|
|
</entry>
|
2022-08-02 03:52:35 +00:00
|
|
|
{{- end -}}
|
|
|
|
{{- end }}
|
2022-05-27 01:57:49 +00:00
|
|
|
</feed>
|