diff options
author | tom <tom@mdashx.com> | 2020-12-07 21:33:53 +0300 |
---|---|---|
committer | tom <tom@mdashx.com> | 2020-12-07 21:33:53 +0300 |
commit | abda471d66864f4def0cb2822013db096f549d1c (patch) | |
tree | 8cdf27a801211c66243e6110822872e0abd6216c | |
parent | 868ea3706c5526e74ceab76c99e1718749f21ce9 (diff) |
big title option on index.html
-rw-r--r-- | layouts/index.html | 5 |
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 }} |