mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
29 lines
885 B
Markdown
29 lines
885 B
Markdown
|
---
|
||
|
title: ContentWithoutSummary
|
||
|
description: Returns the rendered content of the given page, excluding the content summary.
|
||
|
categories: []
|
||
|
keywords: []
|
||
|
action:
|
||
|
related:
|
||
|
- methods/page/Content
|
||
|
- methods/page/Summary
|
||
|
- methods/page/RawContent
|
||
|
- methods/page/Plain
|
||
|
- methods/page/PlainWords
|
||
|
- methods/page/RenderShortcodes
|
||
|
returnType: template.HTML
|
||
|
signatures: [PAGE.ContentWithoutSummary]
|
||
|
---
|
||
|
|
||
|
{{< new-in 0.134.0 >}}
|
||
|
|
||
|
Applicable when using manual or automatic [content summaries], the `ContentWithoutSummary` method on a `Page` object renders Markdown and shortcodes to HTML, excluding the content summary from the result.
|
||
|
|
||
|
[content summaries]: /content-management/summaries/#manual-summary
|
||
|
|
||
|
```go-html-template
|
||
|
{{ .ContentWithoutSummary }}
|
||
|
```
|
||
|
|
||
|
The `ContentWithoutSummary` method returns an empty string if you define the content summary in front matter.
|