--- title: Content summaries linkTitle: Summaries description: Create and render content summaries. categories: [content management] keywords: [summaries,abstracts,read more] menu: docs: parent: content-management weight: 160 weight: 160 toc: true aliases: [/content/summaries/,/content-management/content-summaries/] --- {{% comment %}} {{% /comment %}} You can define a summary manually, in front matter, or automatically. A manual summary takes precedence over a front matter summary, and a front matter summary takes precedence over an automatic summary. Review the [comparison table](#comparison) below to understand the characteristics of each summary type. ## Manual summary Use a `` divider to indicate the end of the summary. Hugo will not render the summary divider itself. {{< code file=content/example.md >}} +++ title: 'Example' date: 2024-05-26T09:10:33-07:00 +++ This is the first paragraph. This is the second paragraph. {{< /code >}} When using the Emacs Org Mode [content format], use a `# more` divider to indicate the end of the summary. [content format]: /content-management/formats/ ## Front matter summary Use front matter to define a summary independent of content. {{< code file=content/example.md >}} +++ title: 'Example' date: 2024-05-26T09:10:33-07:00 summary: 'This summary is independent of the content.' +++ This is the first paragraph. This is the second paragraph. {{< /code >}} ## Automatic summary If you do not define the summary manually or in front matter, Hugo automatically defines the summary based on the [`summaryLength`] in your site configuration. [`summaryLength`]: /getting-started/configuration/#summarylength {{< code file=content/example.md >}} +++ title: 'Example' date: 2024-05-26T09:10:33-07:00 +++ This is the first paragraph. This is the second paragraph. This is the third paragraph. {{< /code >}} For example, with a `summaryLength` of 7, the automatic summary will be: ```html
This is the first paragraph.
This is the second paragraph.
``` ## Comparison Each summary type has different characteristics: Type|Precedence|Renders markdown|Renders shortcodes|Wraps single lines with `` :--|:-:|:-:|:-:|:-: Manual|1|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark: Front matter|2|:heavy_check_mark:|:x:|:x: Automatic|3|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark: ## Rendering Render the summary in a template by calling the [`Summary`] method on a `Page` object. [`Summary`]: /methods/page/summary ```go-html-template {{ range site.RegularPages }}