mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
Add some ActivityStreams metadata to Atom feeds
This commit is contained in:
parent
3b8b35ce8c
commit
f514677e94
1 changed files with 7 additions and 0 deletions
|
@ -27,6 +27,13 @@
|
||||||
<id>{{ .Permalink }}</id>
|
<id>{{ .Permalink }}</id>
|
||||||
<rights>CC-BY-SA 4.0 by Rohan Kumar</rights>
|
<rights>CC-BY-SA 4.0 by Rohan Kumar</rights>
|
||||||
<content type="html"><![CDATA[{{ .Content | safeHTML }}]]></content>
|
<content type="html"><![CDATA[{{ .Content | safeHTML }}]]></content>
|
||||||
|
<object-type xmlns="http://activitystrea.ms/spec/1.0/">
|
||||||
|
{{- if eq .Section "notes" -}}
|
||||||
|
note
|
||||||
|
{{- else if eq .Section "posts" -}}
|
||||||
|
article
|
||||||
|
{{- end -}}
|
||||||
|
</object-type>
|
||||||
</entry>
|
</entry>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</feed>
|
</feed>
|
||||||
|
|
Loading…
Reference in a new issue