Skip to content

Commit

Permalink
Added activitystream2
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon-Rozek committed Nov 26, 2022
1 parent 60bb02b commit 8513bec
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions layouts/_default/list.as2.ajson
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"items": [{{ range $index, $page := .Pages }}{{ if ne $index 0 }},{{ end }}
{
"@context": "https://www.w3.org/ns/activitystreams",
"actor": {
{{with $.Site.Author.name }}"name": "{{ . }}",{{ end }}
"url": "{{ .Site.BaseURL }}"
},
"id": "{{ $page.Permalink }}",
"object": {
"attributedTo": [
{
{{with $.Site.Author.name }}"name": "{{ . }}",{{ end }}
"type": "Person",
"url": "{{ .Site.BaseURL }}"
}
],
"content": {{ $page.Content | jsonify }},
"id": "{{ $page.Permalink }}",
"name": {{ $page.Title | jsonify }},
"published": {{ $page.Date.Format "2006.01.02" | jsonify }},
"tag": {{ $page.Params.tags | jsonify }},
"type": "Article",
"url": "{{ $page.Permalink }}"
}
}
{{ end }}]
}

0 comments on commit 8513bec

Please sign in to comment.