mirror of
https://github.com/TeamPiped/hugo-whisper-theme.git
synced 2024-08-14 23:57:00 +00:00
Merge pull request #20 from remeika/summary
Use Hugo's content summary feature for documentation overview
This commit is contained in:
commit
f7bbb030ca
4 changed files with 9 additions and 2 deletions
|
@ -8,6 +8,10 @@ pygmentsCodeFences = true
|
||||||
pygmentsCodefencesGuessSyntax = true
|
pygmentsCodefencesGuessSyntax = true
|
||||||
pygmentsUseClasses = 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]]
|
[[menu.main]]
|
||||||
name = "Home"
|
name = "Home"
|
||||||
url = "/"
|
url = "/"
|
||||||
|
|
|
@ -3,6 +3,7 @@ title: 'Configuration'
|
||||||
date: 2019-02-11T19:30:08+10:00
|
date: 2019-02-11T19:30:08+10:00
|
||||||
draft: false
|
draft: false
|
||||||
weight: 4
|
weight: 4
|
||||||
|
summary: Syntax highlighting and menus can be configured via `config.toml`.
|
||||||
---
|
---
|
||||||
|
|
||||||
## Syntax Highlighting
|
## Syntax Highlighting
|
||||||
|
|
|
@ -4,7 +4,9 @@ date: 2019-02-11T19:27:37+10:00
|
||||||
weight: 7
|
weight: 7
|
||||||
---
|
---
|
||||||
|
|
||||||
Whisper is a minimal documentation theme built for Hugo. The design and functionality is intentionally minimal.
|
Whisper is a minimal documentation theme built for Hugo. The design & functionality is intentionally minimal.
|
||||||
|
|
||||||
|
<!--more-->
|
||||||
|
|
||||||
## Quickstart
|
## Quickstart
|
||||||
|
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
<img alt="{{ .Title }}" src="{{ .Params.image }}" />
|
<img alt="{{ .Title }}" src="{{ .Params.image }}" />
|
||||||
{{ end}}
|
{{ end}}
|
||||||
<h2 class="title-summary"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
<h2 class="title-summary"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||||
<p>{{ htmlUnescape .Content | plainify | truncate 140 }}</p>
|
<p>{{ .Summary }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue