mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-16 08:25:29 -04:00
content: Update FAQs
This commit is contained in:
parent
fc644d8949
commit
83747f36b9
@ -84,8 +84,8 @@ Why isn't Hugo's development server detecting file changes?
|
||||
|
||||
In these cases, instead of monitoring native file system events, use the `--poll` command line flag. For example, to poll the project files every 700 milliseconds, use `--poll 700ms`.
|
||||
|
||||
Why is my page Scratch or Store missing a value?
|
||||
: The [`Scratch`] and [`Store`] methods on a `Page` object allow you to create a [scratch pad](g) on the given page to store and manipulate data. Values are often set within a shortcode, a partial template called by a shortcode, or by a Markdown render hook. In all three cases, the scratch pad values are not determinate until Hugo renders the page content.
|
||||
Why is my page Store missing a value?
|
||||
: The [`Store`] method on a `Page` object allows you to create a [scratch pad](g) on the given page to store and manipulate data. Values are often set within a shortcode, a partial template called by a shortcode, or by a Markdown render hook. In all three cases, the scratch pad values are not determinate until Hugo renders the page content.
|
||||
|
||||
If you need to access a scratch pad value from a parent template, and the parent template has not yet rendered the page content, you can trigger content rendering by assigning the returned value to a [noop](g) variable:
|
||||
|
||||
@ -104,7 +104,6 @@ Which page methods trigger content rendering?
|
||||
|
||||
[`Paginate`]: /methods/page/paginate/
|
||||
[`Paginator`]: /methods/page/paginator/
|
||||
[`Scratch`]: /methods/page/scratch
|
||||
[`Store`]: /methods/page/store
|
||||
[forum]: https://discourse.gohugo.io
|
||||
[forum]: https://discourse.gohugo.io
|
||||
|
Loading…
x
Reference in New Issue
Block a user