diff options
author | tom <tom@mdashx.com> | 2020-12-11 21:20:56 +0300 |
---|---|---|
committer | tom <tom@mdashx.com> | 2020-12-11 21:20:56 +0300 |
commit | 7e32df36aab0de7045eea0928dec4d07107c10de (patch) | |
tree | 8642632819917ea86d9b7fae59be338d4274166d | |
parent | eafccbda42706169fe4fb66574308d2b43f00333 (diff) |
Use front-matter param for list page preview preference
-rw-r--r-- | layouts/_default/list.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index e365ff9..9449215 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -4,10 +4,11 @@ {{ $bigtitle := .Param "bigtitle" }} {{ $showdate := .Param "showdate" }} +{{ $full := .Param "previewfullcontent" }} {{ range .Pages }} -{{ partial "post-preview.html" (dict "page" . "full" true "bigtitle" $bigtitle "showdate" $showdate) }} +{{ partial "post-preview.html" (dict "page" . "full" $full "bigtitle" $bigtitle "showdate" $showdate) }} {{ end }} |