Scratch
Returns a persistent data structure for storing and manipulating keyed values, scoped to the current page.
Syntax
PAGE.Scratch
Returns
maps.Scratch
Deprecated in v0.138.0
Use the PAGE.Store method instead.
This is a soft deprecation. This method will be removed in a future release, but the removal date has not been established. Although Hugo will not emit a warning if you continue to use this method, you should begin using PAGE.Store as soon as possible.
Beginning with v0.138.0 the PAGE.Scratch method is aliased to PAGE.Store.
Last updated:
June 18, 2026
:
Merge commit 'c86d9f4aa8a58931f52df6516f10b67c807505fb' (be780afa7)
Improve this page