HUGO
Menu
GitHub 87548 stars Mastodon

RawContent

返回给定页面的原始内容。

Syntax

PAGE.RawContent

Returns

string

Page 对象上的 RawContent 方法返回原始内容。原始内容不包括 front matter。

{{ .RawContent }}

这在纯文本 输出格式 中渲染页面时很有用。

内容中的 短代码 不会渲染。要获取渲染短代码后的原始内容,请使用 Page 对象上的 RenderShortcodes 方法。


Last updated: January 1, 0001
Improve this page