Skip to content

Refactor: Page.Scratch and Page.Store #543

@Lruihao

Description

@Lruihao

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions