From 30e330e7ba9422d4bad411ebeba017177fd12dad Mon Sep 17 00:00:00 2001 From: teldra Date: Wed, 15 Jun 2022 02:27:58 +0200 Subject: [PATCH] small fixes --- themes/buha/layouts/index.html | 4 ++-- themes/buha/layouts/partials/layout/gen_list.html | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/themes/buha/layouts/index.html b/themes/buha/layouts/index.html index 73dca42..3dc9028 100644 --- a/themes/buha/layouts/index.html +++ b/themes/buha/layouts/index.html @@ -27,8 +27,8 @@ {{ $feat = i18n $feat }} {{ end }}
- {{ partial "layout/gen_list" (dict "context" . "pages" $featured "title" $feat "limit" "5" )}} - {{ partial "layout/gen_list" (dict "context" . "pages" $posts "title" $news "limit" "5" )}} + {{ partial "layout/gen_list" (dict "context" . "pages" $featured "title" $feat "link" "featured" "limit" "5" )}} + {{ partial "layout/gen_list" (dict "context" . "pages" $posts "title" $news "link" "news" "limit" "5" )}}
{{ end }} diff --git a/themes/buha/layouts/partials/layout/gen_list.html b/themes/buha/layouts/partials/layout/gen_list.html index f7b098c..af1bbda 100644 --- a/themes/buha/layouts/partials/layout/gen_list.html +++ b/themes/buha/layouts/partials/layout/gen_list.html @@ -1,5 +1,5 @@ {{ $title := .title }} - +{{ $link := .link }} {{ $p := .pages }} {{ if and (.limit) (not .paginate) }} {{ $p = first .limit .pages }} @@ -15,7 +15,17 @@ {{ if $p }}
- {{ if $title }}

{{ $title }}

{{ end }} + {{ if $title }} +

+ {{ if $link }} + + {{ end }} + {{ $title }} + {{ if $link }} + + {{ end }} +

+ {{ end }} {{ range $p }}
{{ $metas := dict "when" .Params.when "price" .Params.price }}