Docusaurus blogs: using the createFeedItems API with git commit date
A new API landed in Docusaurus 2.3.0 - it's called createFeedItems
. It's a great API that allows you to tweak the Atom / RSS / JSON feeds for your blog. This post shows how to use it with the git commit date.
This post builds upon a technique we've previously used to drive the lastmod
properties of our sitemap. You can read about driving lastmod
from git commit here.