hugo/docs/content/en/methods/page/RawContent.md
Bjørn Erik Pedersen 5fd1e74903
Merge commit '9b0050e9aabe4be65c78ccf292a348f309d50ccd' as 'docs'
```
git subtree add --prefix=docs/ https://github.com/gohugoio/hugoDocs.git master --squash
```

Closes #11925
2024-01-27 10:48:57 +01:00

862 B

title description categories keywords action
RawContent Returns the raw content of the given page.
related returnType signatures
methods/page/Content
methods/page/Plain
methods/page/PlainWords
methods/page/RenderShortcodes
string
PAGE.RawContent

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 %}}