mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 08:25:59 -04:00
Update content-adapters.md
This commit is contained in:
parent
9e49ae3e1d
commit
bfe9cdc3da
@ -91,6 +91,10 @@ Returns the `Site` to which the pages will be added.
|
||||
{{ .Site.Title }}
|
||||
{{< /code >}}
|
||||
|
||||
{{% note %}}
|
||||
Note that the `Site` returned isn't fully built when invoked from the content adapters; if you try to call methods that depends on pages, e.g. `.Site.Pages`, you will get an error saying "this method cannot be called before the site is fully initialized".
|
||||
{{% /note %}}
|
||||
|
||||
###### Store
|
||||
|
||||
Returns a persistent “scratch pad” to store and manipulate data. The main use case for this is to transfer values between executions when [EnableAllLanguages](#enablealllanguages) is set. See [examples](/methods/page/store/).
|
||||
|
Loading…
x
Reference in New Issue
Block a user