1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-12-20 09:32:19 +01:00

Theoretically make truncate overridable from front-matter

This commit is contained in:
Mike Lococo 2017-04-03 19:30:05 -04:00
parent 26f5f8ae74
commit 34f9557397

View File

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