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

Refactor: Page.Scratch and Page.Store #543

Open
Lruihao opened this issue Nov 7, 2024 · 0 comments
Open

Refactor: Page.Scratch and Page.Store #543

Lruihao opened this issue Nov 7, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@Lruihao
Copy link
Member

Lruihao commented Nov 7, 2024

Note

Hugo 0.138.0 note that:
This release soft deprecates Page.Scratch and aliases it to Page.Store. The only difference between the two has been that the Page.Scratch was reset on rebuilds, which becomes problematic when state is written by cached content (typically .Content). The original motivation behind adding a new and not changing the existing method was to avoid breakage, but in hind-sight, it would have fixed more than it broke.

In future, maybe refactor with gohugoio/hugo#13021

@Lruihao Lruihao added the enhancement New feature or request label Nov 7, 2024
@Lruihao Lruihao added this to the v0.4.x milestone Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: To do
Development

No branches or pull requests

1 participant