mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Merge commit 'acb9109df778fa4a51c0d8b29b3212b12988908f'
This commit is contained in:
@@ -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).
|
||||
|
26
docs/content/en/functions/site.md
Normal file
26
docs/content/en/functions/site.md
Normal 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" >}}).
|
||||
|
||||
|
Reference in New Issue
Block a user