From 0fff8177dba54985e0c025a26ffd75bb0fd5e445 Mon Sep 17 00:00:00 2001 From: digitalcraftsman Date: Fri, 14 Apr 2017 20:44:37 +0200 Subject: [PATCH] Propose archetype usage for summary divider in content-management/summaries.md Comment by @rdwatters: Nice catch. See PR rdwatters/hugo-docs-concept#89 --- content/content-management/summaries.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/content-management/summaries.md b/content/content-management/summaries.md index e58245cf8..333f5f5b0 100644 --- a/content/content-management/summaries.md +++ b/content/content-management/summaries.md @@ -48,7 +48,7 @@ The concept of a *summary divider* is not unique to Hugo. It is also called the {{% /note %}} * Pros: Freedom, precision, and improved rendering. All HTML tags and formatting are preserved. -* Cons: Extra work for content authors, since they need to remember to type <!--more--> (or `# more` for [org content][org]) in each content file. +* Cons: Extra work for content authors, since they need to remember to type <!--more--> (or `# more` for [org content][org]) in each content file. This can be automated by adding the summary divider below the front matter of an [archetype](/content-management/archetypes/). {{% warning "Be Precise with the Summary Divider" %}} Be careful to enter <!--more--> exactly; i.e., all lowercase and with no whitespace. Any mistakes in the divider will tell Hugo to treat the divider as a regular comment and will fail to store your desired content in the `.Summary` variable. @@ -56,7 +56,7 @@ Be careful to enter <!--more--> exactly ## Example: First 10 Articles with Summaries -You can show content summaries with the following code. You could use the following snipper, for example, in a [section template][]. +You can show content summaries with the following code. You could use the following snippet, for example, in a [section template][]. {{% code file="page-list-with-summaries.html" %}} ```html