From 34f9557397c57b281eb3f65553f4f30282fe907f Mon Sep 17 00:00:00 2001 From: Mike Lococo Date: Mon, 3 Apr 2017 19:30:05 -0400 Subject: [PATCH] Theoretically make truncate overridable from front-matter --- layouts/_default/list.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 351f729..a1ba2fe 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -29,10 +29,9 @@ {{ define "main" }} -{{ $truncate := default true .Site.Params.truncate }} {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} {{ range $paginator.Pages }} -{{ if $truncate }} +{{ if (ne ($.Param "truncate") false) }} {{ .Render "summary" }} {{ else }} {{ .Render "content" }}