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-07 21:33:53 +0300
committertom <tom@mdashx.com>2020-12-07 21:33:53 +0300
commitabda471d66864f4def0cb2822013db096f549d1c (patch)
tree8cdf27a801211c66243e6110822872e0abd6216c
parent868ea3706c5526e74ceab76c99e1718749f21ce9 (diff)
big title option on index.html
-rw-r--r--layouts/index.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 1a97366..cb1dccf 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -2,11 +2,14 @@
{{ .Content }}
+{{ $bigtitle := .Param "bigtitle" }}
+{{ $showdate := .Param "showdate" }}
+
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ range $pages }}
-{{ partial "post-preview.html" (dict "page" . "bigTitle" true) }}
+{{ partial "post-preview.html" (dict "page" . "bigtitle" $bigtitle "showdate" $showdate) }}
{{ end }}