1
Fork 0

Use custom summary renderer

This commit is contained in:
Jake Howard 2017-11-09 13:48:28 +00:00
parent a84a3f497d
commit 682bd67df3
Signed by: jake
GPG key ID: 57AFB45680EDD477
4 changed files with 5 additions and 4 deletions

View file

@ -20,7 +20,7 @@ build: install
cp static/keybase.txt public/keybase.txt
server: build
hugo server --noHTTPCache
hugo server --noHTTPCache --disableFastRender
clean:

View file

@ -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"

View file

@ -10,6 +10,6 @@
<a href="{{ .Permalink }}">
<h5 class="mt-0">{{ .Title }}</h5>
</a>
<p>{{ .Summary }}</p>
<p>{{ partial "summary.html" . }}</p>
</div>
</div>

View file

@ -0,0 +1 @@
{{ .Summary }}{{ if .Truncated }}&hellip;{{ end }}