Update site.md

Mention the site function

See #1119
This commit is contained in:
Bjørn Erik Pedersen 2020-05-23 13:46:52 +02:00 committed by GitHub
parent 382632b583
commit 40ba83c263
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,10 @@ toc: true
The following is a list of site-level (aka "global") variables. Many of these variables are defined in your site's [configuration file][config], whereas others are built into Hugo's core for convenient usage in your templates.
## Get the Site object from a partial
All the methods below, e.g. `.Site.RegularPages` can also be reached via the global `site` function, e.g. `site.RegularPages`, which can be handy in partials where the `Page` object isn't easily available. {{< new-in "0.53.0" >}}.
## Site Variables List
.Site.AllPages