diff options
author | tom <tom@mdashx.com> | 2020-12-06 18:46:54 +0300 |
---|---|---|
committer | tom <tom@mdashx.com> | 2020-12-06 18:46:54 +0300 |
commit | addbe1d00d5abcffb446a28f858162c652c7147b (patch) | |
tree | 54d5ae919b35861d7f88fc6ecfb2fba4fb1d24f5 | |
parent | a6a118c4f3e974fe7cfadd0553c5f83375711cd1 (diff) |
Use bigtitle param in list _index.md
-rw-r--r-- | layouts/_default/list.html | 2 | ||||
-rw-r--r-- | layouts/partials/post-preview.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index a8f83dd..1d0fba8 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -4,7 +4,7 @@ {{ range .Pages }} -{{ partial "post-preview.html" (dict "page" . "full" true) }} +{{ partial "post-preview.html" (dict "page" . "full" true "bigtitle" (.Param "bigtitle") ) }} {{ end }} diff --git a/layouts/partials/post-preview.html b/layouts/partials/post-preview.html index 937386d..9a433aa 100644 --- a/layouts/partials/post-preview.html +++ b/layouts/partials/post-preview.html @@ -3,7 +3,7 @@ {{ $content := .page.Content }} {{ if isset . "full" }}{{ $full = .full }}{{ end }} -{{ if isset . "bigTitle" }}{{ $bigTitle = .bigTitle }}{{ end }} +{{ if isset . "bigtitle" }}{{ $bigTitle = .bigtitle }}{{ end }} {{ if not $full}} {{ $content = $content | truncate 200}} |