Back to Hugo

RawContent

docs/content/en/methods/page/RawContent.md

0.161.1457 B
Original Source

The RawContent method on a Page object returns the raw content. The raw content does not include front matter.

go-html-template
{{ .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.