Use shorter summary
This commit is contained in:
parent
88d8b6c498
commit
6795d4b758
2 changed files with 2 additions and 4 deletions
|
@ -4,6 +4,7 @@ title: TheOrangeOne
|
|||
|
||||
params:
|
||||
author: TheOrangeOne
|
||||
summary_length: 100
|
||||
|
||||
staticDir: "static/build"
|
||||
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
<div class="col-sm-6">
|
||||
<section class="box special">
|
||||
{{ if .Params.image }}
|
||||
<span class="image featured"><img src="{{ .Params.image }}" alt="{{ .Title }} featured image" /></span>
|
||||
{{ end }}
|
||||
<h3>{{ title .LinkTitle }}</h3>
|
||||
<p>{{ .Summary }}</p>
|
||||
<p>{{ .Summary | truncate .Site.Params.summary_length "..." }}</p>
|
||||
<ul class="actions">
|
||||
<li><a href="{{ .Permalink }}" class="button alt">Read More</a></li>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in a new issue