shuding/nextra

How to keep track of correct last modified times for pages

Aberta

#1.966 aberto em 13 de jun. de 2023

 (3 comentários) (0 reação) (0 responsável)TypeScript (1.413 forks)user submission
good first issueupstream

Métricas do repositório

Stars
 (13.807 estrelas)
Métricas de merge de PR
 (Mesclagem média 6d 16h) (3 fundiu PRs em 30d)

Description

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?

Guia do colaborador