@bep You might be able to help me out with this one. I tried using Raymond Camden’s jsonfeed tutorial but have ran into a build error.
Error from Terminal
ERROR 2017/08/07 14:36:16 Error while rendering “page”: template: theme/_default/feed.json:21:16: executing “theme/_default/feed.json” at <delimit .Params.tags…>: error calling delimit: can’t iterate over
feed.json code
{
"version": "https://jsonfeed.org/version/1",
"title": "{{ .Site.Title }}",
"home_page_url": "{{ .Site.BaseURL }}",
"feed_url": "{{ .Permalink}}",
{{ if isset .Site.Params "description" }}
"description": "{{ .Site.Params.description }}",
{{ end }}
{{ if isset .Site.Params "author" }}
"author": { "name": "{{ .Site.Params.author }}" },
{{ end }}
"items": [
{{ range $i, $e := first 10 .Site.Pages }}
{{ if $i }}, {{ end }}
{
"id": "{{ .Permalink }}",
"title": "{{ .Title }}",
"content_text": {{ .Summary | jsonify }},
"url": "{{ .Permalink }}",
"date_published": "{{ replace .Date "-0700 -0700" "-0700"}}",
"tags": "{{ delimit .Params.tags "," }}"
}
{{ end }}
]
}
Any thoughts on what might be causing this?
EDIT: Actually removing "tags": "{{ delimit .Params.tags "," }}"
removed the error. Now, I just get a blank page with only <pre>
tags in the source.