Scratch
Returns a persistent data structure for storing and manipulating keyed values, scoped to the current shortcode.
Syntax
SHORTCODE.Scratch
Returns
maps.Scratch
Deprecated in v0.139.0
Use the SHORTCODE.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 SHORTCODE.Store as soon as possible.
Beginning with v0.139.0 the SHORTCODE.Scratch method is aliased to SHORTCODE.Store.
Last updated:
May 28, 2026
:
content: Replace "scratch pad" with clearer data structure terminology (8875ef7fe)
Improve this page