Skip to content

Commit

Permalink
adjust jsonfeed template
Browse files Browse the repository at this point in the history
  • Loading branch information
sudorandom committed Apr 29, 2024
1 parent 2a613b8 commit 5cd2f29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions data/mastodon-latest.json
@@ -0,0 +1 @@
{"time": "2024-04-29 06:23", "link": "https://infosec.exchange/@sudorandom/112352600955696177"}
11 changes: 5 additions & 6 deletions layouts/_default/list.json
@@ -1,18 +1,17 @@
{
"version": "https://jsonfeed.org/version/1",
"version": "https://jsonfeed.org/version/1.1",
"title": "{{ .Site.Title }}",
"home_page_url": {{ .Permalink | jsonify }},
"feed_url": {{ with .OutputFormats.Get "jsonfeed" -}}
{{- .Permalink | jsonify -}}
{{- end }},
"home_page_url": {{ site.BaseURL | jsonify }},
"feed_url": {{- .Permalink | jsonify -}},
"items": [
{{ range $index, $entry := first 15 .Data.Pages }}
{{ range $index, $entry := first 10 .Data.Pages }}
{{- if $index }}, {{ end }}
{
"id": {{ .Permalink | jsonify }},
"url": {{ .Permalink | jsonify }},
"title": {{ .Title | jsonify }},
"date_published": {{ .Date.Format "2006-01-02T15:04:05Z07:00" | jsonify }},
"date_modified": {{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | jsonify }},
"content_html": {{ .Content | jsonify }},
"tags": {{ .Params.Tags | jsonify }}
}
Expand Down

0 comments on commit 5cd2f29

Please sign in to comment.