mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-02-15 12:19:05 +00:00
20 lines
992 B
JSON
20 lines
992 B
JSON
![]() |
{
|
||
|
"version": "https://jsonfeed.org/version/1",
|
||
|
"title": "{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}",
|
||
|
"home_page_url": "{{ .Site.BaseURL }}",
|
||
|
"feed_url": "{{ with .OutputFormats.Get "json" }}{{ .Permalink }}{{ end }}",
|
||
|
"description": "Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}",
|
||
|
"favicon": "{{ "assets/icon.png" | absURL }}",
|
||
|
"icon": "{{ "assets/icon.png" | absURL }}",
|
||
|
"author": {
|
||
|
"name": "{{ with .Site.Author.name }}{{ . }}{{ end }}"
|
||
|
},
|
||
|
"items": [
|
||
|
{{- $limit := cond (gt .Site.Params.feedLimit 0) .Site.Params.feedLimit 10 -}}
|
||
|
{{- $pages := first $limit (where .RegularPages "File.Dir" "!=" "/") -}}
|
||
|
{{- $objects := apply $pages "partial" "json_feed_entry.json" "." -}}
|
||
|
{{- $clean := apply $objects "chomp" "." -}}
|
||
|
{{- delimit $clean "," -}}
|
||
|
]
|
||
|
}
|