Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 756 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 756 Bytes

This plug-in generates a /index.json file containing the same posts as /index.html. Intended to be used in JavaScripts. For example to promote the most recent posts at the bottom of older posts.

By default, the JSON file will include: [ { "date": , "title": , "loc": }, ]

Optionally, it can be expanded to include thumbnails or descriptions: [ { "date" , "title": , "loc": , "desc": , "img": ], }

Posts are sorted by their post.meta.date as JavaScript dates.

Pro tip: Set a sensible cache header for the JSON file.