Repository navigation
feat(content): derive content lastmod from frontmatter dates - #721
Merged
Merged
Conversation
Content pages only got lastmod from updatedAt or seo.articleModifiedTime, so pages with only a publication date, or a date in meta, had none. The resolver now reads modification dates, then publication dates, from declared fields and meta, and skips values that are not dates. contentLastmod: false turns it off.
commit: |
|
| Module | Client gzip | Server raw |
|---|---|---|
| @nuxtjs/sitemap | 255 B | 569 kB |
Package files (9)
Rows overlap and include unused code. These totals do not measure deployed output or npm downloads.
Excludes dependency files, types, source maps, and other non-code files.
| Package files | Summed gzip | Raw | Δ gzip |
|---|---|---|---|
| @nuxtjs/sitemap · export . | 17 kB | 69 kB | 🔴 +285 B (+1.7%) |
| @nuxtjs/sitemap · export ./content | 1.1 kB | 3.7 kB | — |
| @nuxtjs/sitemap · export ./utils | 2.3 kB | 8.4 kB | — |
| @nuxtjs/sitemap · built code files | 60 kB | 204 kB | 🔴 +285 B (+0.5%) |
| @nuxtjs/sitemap · server source files | 35 kB | 109 kB | — |
| sitemapd · export . | 4.2 kB | 16 kB | — |
| sitemapd · export ./fetch | 940 B | 3.2 kB | — |
| sitemapd · export ./parse | 7.2 kB | 33 kB | — |
| sitemapd · built code files | 14 kB | 58 kB | — |
Dependencies (14)
Declared dependencies. Their installed size does not show runtime cost.
| Package | Dependency | Requested |
|---|---|---|
| @nuxtjs/sitemap | @nuxt/kit | catalog: |
| @nuxtjs/sitemap | consola | catalog: |
| @nuxtjs/sitemap | defu | catalog: |
| @nuxtjs/sitemap | nuxt-site-config | catalog: |
| @nuxtjs/sitemap | nuxtseo-shared | catalog: |
| @nuxtjs/sitemap | ofetch | catalog: |
| @nuxtjs/sitemap | ohash | catalog: |
| @nuxtjs/sitemap | oxc-parser | catalog: |
| @nuxtjs/sitemap | oxc-walker | catalog: |
| @nuxtjs/sitemap | radix3 | catalog: |
| @nuxtjs/sitemap | sitemapd | workspace:^ |
| @nuxtjs/sitemap | ufo | catalog: |
| @nuxtjs/sitemap | ultrahtml | catalog: |
| sitemapd | fast-xml-parser | catalog: |
How this is measured
- Compare the same app with and without the module.
- Client: all emitted JS/CSS, summed per-file gzip. This includes lazy chunks.
- Server: deployed files, including external dependencies. Source maps are excluded.
- Default module settings, Node server preset. Memory and request speed are outside this report.
Base: main @ 79dd709 · 2026-10-13 · differences below 16 B are ignored
Collaborator
Author
Action required: The release range changed. Request a new release after reviewing it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Linked issue
❓ Type of change
📚 Description
Content pages got
lastmodonly from a declaredupdatedAtorseo.articleModifiedTime, so a page with onlypublishedAtordate, or with an undeclared date that Nuxt Content keeps inmeta, had none. The module now reads a modification date first (updatedAt,modifiedAt,dateModified,lastModified), then a publication date (publishedAt,datePublished,date), from declared fields andmeta. It skips values that are not dates, and an explicitsitemap.lastmodstill wins. This changes the sitemap output for existing content sites, andcontentLastmod: falseturns it off.