Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/devcows/hugo-universal-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillermo Guerrero Ibarra <wolf.fox1985@gmail.com>2021-08-18 17:50:07 +0300
committerGitHub <noreply@github.com>2021-08-18 17:50:07 +0300
commit38f49445bfbcd1e03f773336a46d28e03d8539ac (patch)
treecfee57ec43389eef8dc1360e6065abff48802fb8 /README.md
parentfce0ad3c19f55b5d916b741bcee1516001d3b08d (diff)
Summary example. (#315)
* Summary example. * Update README.md
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index 50f5261..f3478f3 100644
--- a/README.md
+++ b/README.md
@@ -524,6 +524,8 @@ The recent posts sections shows the four latest published blog posts, with their
You can enable it in the configuration file.
```toml
+summaryLength = 70
+
[params.recent_posts]
enable = true
title = "From our blog"
@@ -531,6 +533,8 @@ You can enable it in the configuration file.
hide_summary = false
```
+Recent posts use `.Summary` property and by default, Hugo automatically takes the first 70 words of your content as its summary and stores it into the `.Summary` page variable for use in your templates. You may customize the summary length by setting summaryLength in your site configuration.
+
#### Footer
In the footer there are three blocks customizables: `About us`, `Recent posts` and `contact`. Each block can be set via parameters.