Merge commit 'acb9109df778fa4a51c0d8b29b3212b12988908f'

This commit is contained in:
Bjørn Erik Pedersen
2021-02-18 17:52:49 +01:00
7 changed files with 69 additions and 188 deletions

View File

@@ -20,7 +20,7 @@ signature: [".RenderString MARKUP"]
The method takes an optional map argument with these options:
display ("inline")
: `inline` or `block`. If `inline` (default), surrounding ´<p></p>` on short snippets will be trimmed.
: `inline` or `block`. If `inline` (default), surrounding `<p></p>` on short snippets will be trimmed.
markup (defaults to the Page's markup)
: See identifiers in [List of content formats](/content-management/formats/#list-of-content-formats).

View File

@@ -0,0 +1,26 @@
---
title: site
linktitle: site
description: The `site` function provides global access the same data as `.Site` page method
godocref:
date: 2021-02-11
publishdate: 2021-02-11
lastmod: 2021-02-11
keywords: []
categories: [functions]
menu:
docs:
parent: "functions"
toc:
signature: ["site"]
workson: []
hugoversion:
relatedfuncs: ["hugo"]
deprecated: false
draft: false
aliases: []
---
`site` is a global function which returns the same data as the `.Site` page method. See: [Site Variables]({{< relref "/variables/site" >}}).