mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
9b0050e9aa
git-subtree-dir: docs git-subtree-split: 5c085a37b297bf12f59efeaae591418ec025c10d
862 B
862 B
title | description | categories | keywords | action | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RawContent | Returns the raw content of the given page. |
|
The RawContent
method on a Page
object returns the raw content. The raw content does not include front matter.
{{ .RawContent }}
This is useful when rendering a page in a plain text output format.
{{% note %}}
Shortcodes within the content are not rendered. To get the raw content with shortcodes rendered, use the RenderShortcodes
method on a Page
object.
{{% /note %}}