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
|
cp static/keybase.txt public/keybase.txt
|
||||||
|
|
||||||
server: build
|
server: build
|
||||||
hugo server --noHTTPCache
|
hugo server --noHTTPCache --disableFastRender
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
|
@ -5,11 +5,11 @@ title: TheOrangeOne
|
||||||
params:
|
params:
|
||||||
author: TheOrangeOne
|
author: TheOrangeOne
|
||||||
author_name: Jake Howard
|
author_name: Jake Howard
|
||||||
summary_length: 125
|
|
||||||
summary_length_long: 200
|
|
||||||
nav_items: 5
|
nav_items: 5
|
||||||
index_items: 6
|
index_items: 6
|
||||||
|
|
||||||
|
summaryLength: 40
|
||||||
|
|
||||||
outputFormats:
|
outputFormats:
|
||||||
markdown:
|
markdown:
|
||||||
name: "txt"
|
name: "txt"
|
||||||
|
|
|
@ -10,6 +10,6 @@
|
||||||
<a href="{{ .Permalink }}">
|
<a href="{{ .Permalink }}">
|
||||||
<h5 class="mt-0">{{ .Title }}</h5>
|
<h5 class="mt-0">{{ .Title }}</h5>
|
||||||
</a>
|
</a>
|
||||||
<p>{{ .Summary }}</p>
|
<p>{{ partial "summary.html" . }}</p>
|
||||||
</div>
|
</div>
|
||||||
</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