mirror of
https://git.qoto.org/fedipage/fedipage.git
synced 2024-11-15 19:47:57 +01:00
22 lines
611 B
Text
22 lines
611 B
Text
{{- $pctx := . -}}
|
|
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
|
|
{{- $pages := slice -}}
|
|
{{- if or $.IsHome $.IsSection -}}
|
|
{{- $pages = $pctx.RegularPages -}}
|
|
{{- else -}}
|
|
{{- $pages = $pctx.Pages -}}
|
|
{{- end -}}
|
|
{
|
|
{{ partial "context.ajson" . }},
|
|
"id": "{{ $.Site.BaseURL }}outbox",
|
|
"summary": "{{$.Site.Author.name}} - {{$.Site.Title}}",
|
|
"type": "OrderedCollection",
|
|
{{ $all := where $pages ".Draft" "!=" true }}
|
|
"totalItems": {{(len $all)}},
|
|
"orderedItems": [
|
|
{{ range $index, $element := $all }}
|
|
{{- if ne $index 0 }}, {{ end }}
|
|
{{ partial "activity.ajson" . }}
|
|
{{end}}
|
|
]
|
|
}
|