{{- $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 := partialCached "cache-bust.html" "/favicon.svg" "/favicon.svg" -}} {{- $image := partialCached "cache-bust.html" "/favicon192.png" "/favicon192.png" -}} {{- $atomLogo := partial "cache-bust.html" "/atom.svg" -}} {{- /*rejected http://backend.userland.com/creativeCommonsRssModule, as it's completely redundant with and rel-license. */ -}} list {{ $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/ {{ .Site.Author.email }} Copyright © {{ now.Year }} Rohan Kumar {{- with .Params.replyURI -}} {{- end -}} {{- with .Params.replyAuthorURI -}} {{- end -}} {{- $type := "article" -}} {{- /* TODO: add bookmark type and convert bookmarks to their own post types. */ -}} {{- if eq .Section "notes" -}} {{- $type = "note" -}} {{- end -}} http://activitystrea.ms/schema/1.0/{{ $type }} http://activitystrea.ms/schema/1.0/post {{- with .Params.image -}} {{- $image := partial "cache-bust.html" (printf "/p/%s" . ) -}} {{- 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 }}