Skip to content

Add lastUpdated to Astro Starlight frontmatter based on git information

Notifications You must be signed in to change notification settings

val-town/add-last-updated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@valtown/add-last-updated

Another Markdown-related single-tasker script, provided for folks who have the same problem or want another example of how to use vfile and that ecosystem.

If you:

Then you probably have incorrect lastUpdated dates, because there isn't the git history to provide them. So you'll need to use lastUpdated in frontmatter.

This tool helps you make the transition.

Example usage:

Assuming you are in your Astro Starlight docs directory, run:

npx @valtown/add-last-updated src/content

About

Add lastUpdated to Astro Starlight frontmatter based on git information

Topics

Resources

Stars

Watchers

Forks