shuding/nextra

How to keep track of correct last modified times for pages

Open

#1966 aperta il 13 giu 2023

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)TypeScript (1413 fork)user submission
good first issueupstream

Metriche repository

Star
 (13.807 star)
Metriche merge PR
 (Merge medio 6g 16h) (3 PR mergiate in 30 g)

Descrizione

We are using Nextra + Next Sitemap to update our sitemap, but noticed that the lastmod times are always the last time a deploy happened, rather than the last time the page really had any changes made to it. Apart from the sitemap, the pages themselves also say they were updated very recently, even when that's not truly the case.

I wanted to ask if the community has any solutions for dealing with this problem, other than manually updating it in each page's metadata? Is there a way to hook into Git commit history for example?

Guida contributor