diff options
author | James Remeika <james@remeika.us> | 2019-08-06 07:09:34 +0300 |
---|---|---|
committer | James Remeika <james@remeika.us> | 2019-08-06 07:09:34 +0300 |
commit | 412ca20c864387f1d301385bc68244ce14f21c9d (patch) | |
tree | 5a07dec9d702cdf81493ca3f60177c190d165b82 | |
parent | 0a7e0a765062588b5204b43e643197e5d988176d (diff) |
Adds examples of using content summary to example site
-rw-r--r-- | exampleSite/config.toml | 4 | ||||
-rw-r--r-- | exampleSite/content/docs/configure/index.md | 1 | ||||
-rw-r--r-- | exampleSite/content/docs/example/index.md | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 3098ab5..c406f1c 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -8,6 +8,10 @@ pygmentsCodeFences = true pygmentsCodefencesGuessSyntax = true pygmentsUseClasses = true +# Controls how many words are printed in the content summary on the docs homepage. +# See https://gohugo.io/content-management/summaries/ +summaryLength = 30 + [[menu.main]] name = "Home" url = "/" diff --git a/exampleSite/content/docs/configure/index.md b/exampleSite/content/docs/configure/index.md index d8cfb4c..48d9e60 100644 --- a/exampleSite/content/docs/configure/index.md +++ b/exampleSite/content/docs/configure/index.md @@ -3,6 +3,7 @@ title: 'Configuration' date: 2019-02-11T19:30:08+10:00 draft: false weight: 4 +summary: Syntax highlighting and menus can be configured via `config.toml`. --- ## Syntax Highlighting diff --git a/exampleSite/content/docs/example/index.md b/exampleSite/content/docs/example/index.md index 7cb254c..914f72e 100644 --- a/exampleSite/content/docs/example/index.md +++ b/exampleSite/content/docs/example/index.md @@ -6,6 +6,8 @@ weight: 7 Whisper is a minimal documentation theme built for Hugo. The design and functionality is intentionally minimal. +<!--more--> + ## Quickstart Copy or git clone this theme into the sites themes folder `mynewsite/themes` |