From 83747f36b94cf08f79a8e8a1724b1496fad0958e Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sat, 7 Jun 2025 09:38:23 -0700 Subject: [PATCH] content: Update FAQs --- content/en/troubleshooting/faq.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/content/en/troubleshooting/faq.md b/content/en/troubleshooting/faq.md index 6992af5d3..e88b2f9f7 100644 --- a/content/en/troubleshooting/faq.md +++ b/content/en/troubleshooting/faq.md @@ -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