Use custom summary renderer
This commit is contained in:
parent
a84a3f497d
commit
682bd67df3
4 changed files with 5 additions and 4 deletions
2
Makefile
2
Makefile
|
@ -20,7 +20,7 @@ build: install
|
|||
cp static/keybase.txt public/keybase.txt
|
||||
|
||||
server: build
|
||||
hugo server --noHTTPCache
|
||||
hugo server --noHTTPCache --disableFastRender
|
||||
|
||||
|
||||
clean:
|
||||
|
|
|
@ -5,11 +5,11 @@ title: TheOrangeOne
|
|||
params:
|
||||
author: TheOrangeOne
|
||||
author_name: Jake Howard
|
||||
summary_length: 125
|
||||
summary_length_long: 200
|
||||
nav_items: 5
|
||||
index_items: 6
|
||||
|
||||
summaryLength: 40
|
||||
|
||||
outputFormats:
|
||||
markdown:
|
||||
name: "txt"
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
<a href="{{ .Permalink }}">
|
||||
<h5 class="mt-0">{{ .Title }}</h5>
|
||||
</a>
|
||||
<p>{{ .Summary }}</p>
|
||||
<p>{{ partial "summary.html" . }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
1
layouts/partials/summary.html
Normal file
1
layouts/partials/summary.html
Normal file
|
@ -0,0 +1 @@
|
|||
{{ .Summary }}{{ if .Truncated }}…{{ end }}
|
Loading…
Reference in a new issue