{"id":23087929,"url":"https://github.com/val-town/add-last-updated","last_synced_at":"2025-04-03T16:50:10.224Z","repository":{"id":216324383,"uuid":"741078953","full_name":"val-town/add-last-updated","owner":"val-town","description":"Add lastUpdated to Astro Starlight frontmatter based on git information","archived":false,"fork":false,"pushed_at":"2024-01-09T17:03:10.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-02T22:51:24.428Z","etag":null,"topics":["astro","markdown","starlight","vfile"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/val-town.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-09T16:49:46.000Z","updated_at":"2024-12-19T12:51:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"1287c1b8-1b01-4624-a589-0f0ec049d00f","html_url":"https://github.com/val-town/add-last-updated","commit_stats":null,"previous_names":["val-town/add-last-updated"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/val-town%2Fadd-last-updated","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/val-town%2Fadd-last-updated/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/val-town%2Fadd-last-updated/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/val-town%2Fadd-last-updated/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/val-town","download_url":"https://codeload.github.com/val-town/add-last-updated/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247043324,"owners_count":20874085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["astro","markdown","starlight","vfile"],"created_at":"2024-12-16T20:15:31.530Z","updated_at":"2025-04-03T16:50:10.197Z","avatar_url":"https://github.com/val-town.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @valtown/add-last-updated\n\nAnother Markdown-related single-tasker script, provided\nfor folks who have the same problem or want another example\nof how to use `vfile` and that ecosystem.\n\nIf you:\n\n- Are using [Astro Starlight](https://starlight.astro.build/)\n- And Cloudflare Pages or a similar static host that\n  uses [shallow git clones](https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/)\n- And you want to show `lastUpdated` dates\n\nThen you probably have incorrect lastUpdated dates,\nbecause there isn't the git history to provide them. So\nyou'll need to use [lastUpdated](https://starlight.astro.build/reference/frontmatter/#lastupdated) in frontmatter.\n\nThis tool helps you make the transition.\n\n## Example usage:\n\nAssuming you are in your Astro Starlight docs directory,\nrun:\n\n```sh\nnpx @valtown/add-last-updated src/content\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fval-town%2Fadd-last-updated","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fval-town%2Fadd-last-updated","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fval-town%2Fadd-last-updated/lists"}