You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to render an index page for blog posts where I access front matter data stored in each markdown blog post file.
While running the dev server I can see that changes to the front matter data trigger a reload of pages in the browser but the objects returned in collections don't contain updated values. So I need to restart the dev server after each change.
When rendering a single blog post page, hot reload works for changes to the blog post's content or front matter data.
So the issue seems to be related to some kind of collection caching.
Reproduction steps
Create a blog post with front matter data, e.g.
---author: John Doetitle: Hello Worldtags: demo---
This is a blog post!
Another possibility : Eleventy may not correctly detect changes to certain data, especially when the front matter is modified, causing the browser to display outdated content. You might want to disable incremental builds and force Eleventy to perform a full rebuild, ensuring that the latest content is loaded after each change. For example, you can explicitly disable incremental builds in the eleventy.js configuration file like this:
Operating system
Windows 10
Eleventy
3.0.0
Describe the bug
I'm trying to render an index page for blog posts where I access front matter data stored in each markdown blog post file.
While running the dev server I can see that changes to the front matter data trigger a reload of pages in the browser but the objects returned in collections don't contain updated values. So I need to restart the dev server after each change.
When rendering a single blog post page, hot reload works for changes to the blog post's content or front matter data.
So the issue seems to be related to some kind of collection caching.
Reproduction steps
Create a blog post with front matter data, e.g.
Create a index page
Start the dev server:
npx @11ty/eleventy --serve --quiet --incremental
Open the index page in the browser
Change+save the blog posts front matter data.
The index page will be reloaded in the browser but the old data will be displayed
Expected behavior
No response
Reproduction URL
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered: