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:
parent
26f5f8ae74
commit
34f9557397
@ -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" }}
|
||||
|
Loading…
Reference in New Issue
Block a user