small fixes
This commit is contained in:
parent
328d4ce69d
commit
30e330e7ba
|
@ -27,8 +27,8 @@
|
||||||
{{ $feat = i18n $feat }}
|
{{ $feat = i18n $feat }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="two_lists">
|
<div class="two_lists">
|
||||||
{{ partial "layout/gen_list" (dict "context" . "pages" $featured "title" $feat "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 "limit" "5" )}}
|
{{ partial "layout/gen_list" (dict "context" . "pages" $posts "title" $news "link" "news" "limit" "5" )}}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{ $title := .title }}
|
{{ $title := .title }}
|
||||||
|
{{ $link := .link }}
|
||||||
{{ $p := .pages }}
|
{{ $p := .pages }}
|
||||||
{{ if and (.limit) (not .paginate) }}
|
{{ if and (.limit) (not .paginate) }}
|
||||||
{{ $p = first .limit .pages }}
|
{{ $p = first .limit .pages }}
|
||||||
|
@ -15,7 +15,17 @@
|
||||||
|
|
||||||
{{ if $p }}
|
{{ if $p }}
|
||||||
<div class="gen_list">
|
<div class="gen_list">
|
||||||
{{ if $title }}<h2>{{ $title }}</h2>{{ end }}
|
{{ if $title }}
|
||||||
|
<h2>
|
||||||
|
{{ if $link }}
|
||||||
|
<a href="{{ $link | relLangURL }}">
|
||||||
|
{{ end }}
|
||||||
|
{{ $title }}
|
||||||
|
{{ if $link }}
|
||||||
|
</a>
|
||||||
|
{{ end }}
|
||||||
|
</h2>
|
||||||
|
{{ end }}
|
||||||
{{ range $p }}
|
{{ range $p }}
|
||||||
<div class="list_item">
|
<div class="list_item">
|
||||||
{{ $metas := dict "when" .Params.when "price" .Params.price }}
|
{{ $metas := dict "when" .Params.when "price" .Params.price }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user