Debian Codegraph @

docs/content/en/_common/store-scope.md

raw
1 ---
2 _comment: Do not remove front matter.
3 ---
4
5 ## Scope
6
7 The method or function used to create the data structure determines its scope. For example, use the `Store` method on a `Page` object to create a data structure scoped to the page.
8
9 Scope|Method or function
10 :--|:--
11 page|[`PAGE.Store`][]
12 site|[`SITE.Store`][]
13 global|[`hugo.Store`][]
14 local|[`collections.NewScratch`][]
15 shortcode|[`SHORTCODE.Store`][]
16
17 [`PAGE.Store`]: /methods/page/store/
18 [`SHORTCODE.Store`]: /methods/shortcode/store/
19 [`SITE.Store`]: /methods/site/store/
20 [`collections.NewScratch`]: /functions/collections/newscratch/
21 [`hugo.Store`]: /functions/hugo/store/