1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-10 00:12:09 +00:00

Add websub and other feed metadata

This commit is contained in:
Rohan Kumar 2023-11-29 13:37:17 -08:00
parent 12b542c351
commit bf7423e44a
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 6 additions and 1 deletions

View file

@ -23,6 +23,7 @@ disableKinds = ["taxonomy", "term"]
highlight = false highlight = false
icon = "/favicon.svg" icon = "/favicon.svg"
indieAuth = "https://indielogin.com/auth" indieAuth = "https://indielogin.com/auth"
hub = "https://websubhub.com/hub"
[frontmatter] [frontmatter]
lastmod = ['lastmod', ':git', 'date', 'publishDate'] lastmod = ['lastmod', ':git', 'date', 'publishDate']

View file

@ -12,6 +12,7 @@
{{- $faviconSvg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" -}} {{- $faviconSvg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" -}}
{{- $image := resources.Get "/favicon192.png" | resources.Fingerprint "md5" -}} {{- $image := resources.Get "/favicon192.png" | resources.Fingerprint "md5" -}}
{{- $atomLogo := resources.Get "/atom.svg" | resources.Fingerprint "md5" -}} {{- $atomLogo := resources.Get "/atom.svg" | resources.Fingerprint "md5" -}}
{{- /*rejected http://backend.userland.com/creativeCommonsRssModule, as it's completely redundant with <rights> and rel-license. */ -}}
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <?xml version="1.0" encoding="utf-8" standalone="yes"?>
<feed <feed
xmlns="http://www.w3.org/2005/Atom" xmlns="http://www.w3.org/2005/Atom"
@ -35,6 +36,7 @@
{{- end -}} {{- end -}}
</subtitle> </subtitle>
<link rel="self" type="application/atom+xml" href="{{ .Permalink }}atom.xml" /> <link rel="self" type="application/atom+xml" href="{{ .Permalink }}atom.xml" />
<link rel="hub" href="{{ .Site.Params.Hub }}" />
<icon>{{ $faviconSvg.Permalink }}</icon> <icon>{{ $faviconSvg.Permalink }}</icon>
<webfeeds:icon>{{ $image.Permalink }}</webfeeds:icon> <webfeeds:icon>{{ $image.Permalink }}</webfeeds:icon>
<webfeeds:cover>{{ $atomLogo.Permalink }}</webfeeds:cover> <webfeeds:cover>{{ $atomLogo.Permalink }}</webfeeds:cover>
@ -50,8 +52,10 @@
<name>{{ .Site.Author.name }}</name> <name>{{ .Site.Author.name }}</name>
<email>{{ .Site.Author.email }}</email> <email>{{ .Site.Author.email }}</email>
<uri>https://seirdy.one/</uri> <uri>https://seirdy.one/</uri>
<link rel="avatar" type="image/svg+xml" href="{{ $faviconSvg.Permalink }}" />
</author> </author>
<admin:errorReportsTo rdf:resource="mailto:{{ .Site.Author.email }}" /> <admin:errorReportsTo rdf:resource="mailto:{{ .Site.Author.email }}" />
<rights type="text">>Copyright © {{ now.Year }} Rohan Kumar</rights>
<link rel="license" type="application/rdf+xml" href="https://creativecommons.org/licenses/by-sa/4.0/rdf" /> <link rel="license" type="application/rdf+xml" href="https://creativecommons.org/licenses/by-sa/4.0/rdf" />
<updated>{{ site.LastChange.UTC.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated> <updated>{{ site.LastChange.UTC.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
<generator uri="https://gohugo.io/" version="{{ .Site.Hugo.Version }}">Hugo {{ .Site.Hugo.Version }}</generator> <generator uri="https://gohugo.io/" version="{{ .Site.Hugo.Version }}">Hugo {{ .Site.Hugo.Version }}</generator>
@ -65,7 +69,7 @@
<published>{{ .Date.UTC.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published> <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> <updated>{{ .Lastmod.UTC.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
<author><name>{{ .Site.Author.name }}</name><uri>https://seirdy.one/</uri></author> <author><name>{{ .Site.Author.name }}</name><uri>https://seirdy.one/</uri></author>
<rights>CC-BY-SA 4.0</rights> <rights type="text">>Copyright © {{ now.Year }} Rohan Kumar</rights>
<link rel="license" type="application/rdf+xml" href="https://creativecommons.org/licenses/by-sa/4.0/rdf" /> <link rel="license" type="application/rdf+xml" href="https://creativecommons.org/licenses/by-sa/4.0/rdf" />
{{- with .Params.replyURI -}} {{- with .Params.replyURI -}}
<thr:in-reply-to ref="{{ . }}" href="{{ . }}" /> <thr:in-reply-to ref="{{ . }}" href="{{ . }}" />