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