Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directory data file not respected until 11ty server restarted #3569

Open
rcmosher opened this issue Dec 4, 2024 · 0 comments
Open

Directory data file not respected until 11ty server restarted #3569

rcmosher opened this issue Dec 4, 2024 · 0 comments

Comments

@rcmosher
Copy link

rcmosher commented Dec 4, 2024

Operating system

Linux Ubuntu 22.04.5

Eleventy

3.0.0

Describe the bug

I'm following along with "6 Minutes to Build a Blog from Scratch with Eleventy," although using version 3 instead of 2. When I get to the step to create a directory data file, "posts.json" it does not re-render my post files using the new layout specified. The 11ty logs indicate the files are re-written, but they are unchanged.

I need to restart 11ty then the files are updated using the specified layout. I've also tested this with the permalink property. It is also not respected until I restart 11ty.

Reproduction steps

  1. npx @11ty/eleventy --serve
  2. Create an index file, layout file, and a subdirectory with content that isn't yet using the layout file.
  3. Create a directory data file to specify that subdirectory should use the layout file.
  4. Note the pages are not re-rendered with the layout file.

Or follow along to "6 Minutes to Build a Blog from Scratch with Eleventy" until 3:14.

Expected behavior

Files are re-rendered using the layout specified in the directory data file (as well as other options) without having to restart 11ty.

Reproduction URL

No response

Screenshots

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant