new-docs icon indicating copy to clipboard operation
new-docs copied to clipboard

Last modified time in sitemap is wrong

Open vcarl opened this issue 5 years ago • 1 comments

https://developers.stellar.org/sitemap.xml shows all "last modified" times to be the date of the deploy, because the data is sourced from the age of the file on disk, not the actual git last modified date.

vcarl avatar Aug 26 '20 19:08 vcarl

I think we'll need to query each file's last commit date to get this information. Per a very helpful Gatsby issue comment I think we should be able to query this out as part of the build relatively easily, but spawning a git command during the build might cause some some flakiness.

$ git log -1 --pretty=format:%aI -- <filename>
2020-05-29T11:41:40-04:00

vcarl avatar Sep 24 '20 20:09 vcarl