From 25f9e10a0274b3bbb13a0b9d19af31acaa18f1a2 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 17 Nov 2017 21:03:57 +0000 Subject: [PATCH] Simpler summary getter --- layouts/partials/summary.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/layouts/partials/summary.html b/layouts/partials/summary.html index 302b90a..4a061b7 100644 --- a/layouts/partials/summary.html +++ b/layouts/partials/summary.html @@ -1,9 +1,7 @@ -{{ if eq .Section "posts" }} +{{ if .Content }} {{ .Summary | plainify | chomp }}{{ if .Truncated }}…{{ end }} {{ else if .Params.subtitle }} {{ .Params.subtitle | markdownify }} -{{ else if .Content }} - {{ .Summary | plainify | chomp }}{{ if .Truncated }}…{{ end }} {{ else if .Params.repo }} {{ (getJSON "https://api.github.com/repos/" .Params.repo).description }} {{ else if .Params.gist }}