small fixes

This commit is contained in:
teldra 2022-04-08 21:38:16 +02:00
parent dd690b70b3
commit 9681cc41d1
1 changed files with 2 additions and 2 deletions

View File

@ -18,12 +18,12 @@
</article> </article>
{{ end }} {{ end }}
{{ if gt (len $featured) 0 }} {{ if gt (len $featured) 0 }}
<a href="/featured"><h2>{{if "featured" | i18n }}{{ "featured" | i18n }}{{ else }}{{ "Featured" }}{{ end }}</h2></a> <a href="/featured"><h2 style="margin-left: .5rem;">{{if "featured" | i18n }}{{ "featured" | i18n }}{{ else }}{{ "Featured" }}{{ end }}</h2></a>
{{ partial "contentlayouts/list.html" (dict "context" . "pages" $featured "amount" "3" ) }} {{ partial "contentlayouts/list.html" (dict "context" . "pages" $featured "amount" "3" ) }}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ if gt (len $posts) 1 }} {{ if gt (len $posts) 1 }}
<a href="/news"><h2>{{ if "news" | i18n }}{{ "news" | i18n }}{{ else }}{{ "News" }}{{ end }}</h2></a> <a href="/news"><h2 style="margin-left: .5rem;">{{ if "news" | i18n }}{{ "news" | i18n }}{{ else }}{{ "News" }}{{ end }}</h2></a>
{{ partial "contentlayouts/list.html" (dict "context" . "paginator" $paginator "amount" "5") }} {{ partial "contentlayouts/list.html" (dict "context" . "paginator" $paginator "amount" "5") }}
<div id="pagination_outer" style="display: flex; justify-content: center;"> <div id="pagination_outer" style="display: flex; justify-content: center;">