mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-09 10:50:34 -05:00
28 lines
No EOL
946 B
Text
28 lines
No EOL
946 B
Text
{
|
|
"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 }}]
|
|
} |