Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mdashx/basicwebtheme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortom <tom@mdashx.com>2020-12-11 21:20:56 +0300
committertom <tom@mdashx.com>2020-12-11 21:20:56 +0300
commit7e32df36aab0de7045eea0928dec4d07107c10de (patch)
tree8642632819917ea86d9b7fae59be338d4274166d
parenteafccbda42706169fe4fb66574308d2b43f00333 (diff)
Use front-matter param for list page preview preference
-rw-r--r--layouts/_default/list.html3
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 }}