mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-12-20 17:42:21 +01:00
Theoretically make truncate overridable from front-matter
This commit is contained in:
parent
26f5f8ae74
commit
34f9557397
@ -29,10 +29,9 @@
|
|||||||
|
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
|
||||||
{{ $truncate := default true .Site.Params.truncate }}
|
|
||||||
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
|
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
|
||||||
{{ range $paginator.Pages }}
|
{{ range $paginator.Pages }}
|
||||||
{{ if $truncate }}
|
{{ if (ne ($.Param "truncate") false) }}
|
||||||
{{ .Render "summary" }}
|
{{ .Render "summary" }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ .Render "content" }}
|
{{ .Render "content" }}
|
||||||
|
Loading…
Reference in New Issue
Block a user