diff --git a/layouts/_default/list.as2.ajson b/layouts/_default/list.as2.ajson new file mode 100644 index 0000000..eb0a55a --- /dev/null +++ b/layouts/_default/list.as2.ajson @@ -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 }}] +} \ No newline at end of file