Error in Terminal while serving JSON file from /content

@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.

@Raymond_Camden You might also be a good person to talk to about this issue.

Best I can suggest is looking at my solution - I got it working and didn’t think about it again. Frankly, this is - to me - the hardest part of Hugo - just having a random ad hoc dynamic page.

Yeah, I agree.

Looked over your code more. Nothing is coming to me. It seems to work, yet I’m given a blank page.