1
Fork 0

Use shorter summary

This commit is contained in:
Jake Howard 2017-05-06 21:36:04 +01:00
parent 88d8b6c498
commit 6795d4b758
2 changed files with 2 additions and 4 deletions

View file

@ -4,6 +4,7 @@ title: TheOrangeOne
params:
author: TheOrangeOne
summary_length: 100
staticDir: "static/build"

View file

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