Missing tags on posts loaded with endless scroll script

Does anyone here have experience with endless/infinite scrolling in Jekyll? I used the script here (https://github.com/tobiasahlin/infinite-jekyll) and followed all the directions. Problem is that any posts loaded after scroll are missing their tags:

Here’s how I modified the all-posts.json file but it dosn’t seem to have any affect:


layout: null

{
“posts” : [

{% for post in site.posts %}

{"url":"{{ post.url }}"
{% if post.categories %}
  , "categories":"{{ post.categories }}"
{% endif %}
{% if post.tags %}
  , "tags":"{{ post.tags }}"
{% endif %}
} {% unless forloop.last %},{% endunless %}
{% endfor %}

]
}

Any ideas how to go about this?

what is the resulting json you get? have you tried running it thru a validator to make sure it is correct?

I think you may have to do more work on the categories and tags part when there is more than one tag/cat.

I would work in reverse - play with the actual json file until it works, then figure out how to get jekyll to output it properly.

Thanks for the tip! Where can I see the resulting Jason?

this file should be inside your _site directory somewhere.