{{- $pages := (where site.RegularPages "Section" .Section) -}} {{- $period := "daily" -}} {{- $title := .Section | humanize -}} {{- if .IsHome -}} {{- $title = "All content" -}} {{- $pages = where .Site.RegularPages "Date" "!=" (time "0001-01-01") -}} {{- $period = "hourly" -}} {{- end -}} {{- if eq .Section "notes" -}} {{- $period = "hourly" -}} {{- end -}} {{- $faviconSvg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" -}} {{- $image := resources.Get "/favicon192.png" | resources.Fingerprint "md5" -}} {{- $atomLogo := resources.Get "/atom.svg" | resources.Fingerprint "md5" -}} {{- /*rejected http://backend.userland.com/creativeCommonsRssModule, as it's completely redundant with and rel-license. */ -}} {{ $title }} on {{ .Site.Title }} {{- if .Params.Description -}} {{- .Params.Description -}} {{- else -}} {{- .Site.Params.Description -}} {{- end -}} {{ with .Site.Params.Hub -}} {{- end }} {{ $faviconSvg.Permalink }} {{ $image.Permalink }} {{ $atomLogo.Permalink }} {{ $atomLogo.Permalink }} 191919 {{ $period }} 2 http://activitystrea.ms/schema/1.0/person {{ .Site.Author.name }} {{ .Site.Author.nick }} {{ .Site.Author.name }} {{ .Site.Author.email }} https://seirdy.one/ Copyright © {{ now.Year }} Rohan Kumar {{ site.LastChange.UTC.Format "2006-01-02T15:04:05-07:00" | safeHTML }} Hugo {{ .Site.Hugo.Version }} {{ .Permalink }} {{ range $pages -}} {{- if not .Params.Private -}} {{ .Title }} {{ .Permalink }} {{ .Date.UTC.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{ .Lastmod.UTC.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{ .Site.Author.name }}https://seirdy.one/ Copyright © {{ now.Year }} Rohan Kumar {{- with .Params.replyURI -}} {{- end -}} {{- with .Params.replyAuthorURI -}} {{- end -}} {{- $type := "article" -}} {{- if eq .Section "notes" -}}{{ /* TODO: add bookmark type and convert bookmarks to their own post types. */ -}} {{- $type = "note" -}} {{- end -}} http://activitystrea.ms/schema/1.0/{{ $type }} http://activitystrea.ms/schema/1.0/post {{- with .Params.image -}} {{- $image = resources.Get (printf "/p/%s" . ) | resources.Fingerprint "md5" -}} {{- end -}} {{ with .Description -}} {{ . }} {{- end }}
{{- 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 `` "" | safeHTML -}}
{{- /* TODO: add application/atom+xml version of comments. */ }} {{ .Page.Scratch.Get "webmentionCount" }}
{{ end -}} {{- end }}