From 6795d4b758bef6e13d52a21932d5d2efb892e7a0 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 6 May 2017 21:36:04 +0100 Subject: [PATCH] Use shorter summary --- config.yml | 1 + layouts/partials/box.html | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/config.yml b/config.yml index 7f3388a..3e7a345 100644 --- a/config.yml +++ b/config.yml @@ -4,6 +4,7 @@ title: TheOrangeOne params: author: TheOrangeOne + summary_length: 100 staticDir: "static/build" diff --git a/layouts/partials/box.html b/layouts/partials/box.html index 6defab3..b5ec215 100644 --- a/layouts/partials/box.html +++ b/layouts/partials/box.html @@ -1,10 +1,7 @@
- {{ if .Params.image }} - {{ .Title }} featured image - {{ end }}

{{ title .LinkTitle }}

-

{{ .Summary }}

+

{{ .Summary | truncate .Site.Params.summary_length "..." }}