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

github.com/kakawait/hugo-tranquilpeak-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorZac Harmany <zac@zacbook.net>2017-11-13 23:37:19 +0300
committerZac Harmany <zac@zacbook.net>2017-11-13 23:37:19 +0300
commit0ba89d9d84abb57fa5a9143cf53a37f6ce21e6e7 (patch)
tree44d015982dbd8603a186f23447b1d2b6f97cf458 /docs
parent2743c416b8fc3e5479b782a04a55a92ad9e06254 (diff)
Added description of the summary front-matter variable.
Diffstat (limited to 'docs')
-rw-r--r--docs/user.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/user.md b/docs/user.md
index 0cd7924..69a6128 100644
--- a/docs/user.md
+++ b/docs/user.md
@@ -530,7 +530,8 @@ Please note, there are many different versions of Markdown and some of them are
Tranquilpeak introduces new variables to give you a lot of possibilities.
Example :
-``` markdown
+
+```markdown
disqusIdentifier: fdsF34ff34
keywords:
- javascript
@@ -555,6 +556,7 @@ showTags: true
showPagination: true
showSocial: true
showDate: true
+summary: "This is a custom summary and does *not* appear in the post."
```
|Variable|Description|
@@ -578,6 +580,7 @@ showDate: true
|showSocial|`true`: show social button such as share on Twitter, Facebook...|
|showMeta|`true`: Show post meta (date, categories).|
|showActions|`true`: Show post actions (navigation, share links).|
+|summary|Custom excerpt text to show on the homepage.|
Example:
A post on index page will look like this with :`thumbnailImagePosition` set to `bottom`:
@@ -594,6 +597,7 @@ The same with : `thumbnailImagePosition` set to `left`:
Use:
- `<!--more-->` to define post excerpt and keep the post excerpt in the post content
+- For a custom exerpt *not* in the post content, use the `summary` front-matter variable. Markdown syntax is supported.
### Display table of contents