association-chahut.fr/themes/blist/layouts/index.html
Adrian Amaglio 16cfd3a2d3 init
2024-04-17 19:07:11 +02:00

22 lines
880 B
HTML

{{ define "main" }}
{{- partial "intro.html" . -}}
{{ $frontBundle := .Site.Params.frontBundle | default "blog" }}
<div class="container p-6 mx-auto grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 lg:gap-8">
{{ range first 6 (where .Site.RegularPages.ByDate.Reverse "Type" $frontBundle) }}
{{- partial "blog-card.html" . -}}
{{ end }}
</div>
{{ if gt (len (where .Site.RegularPages.ByDate.Reverse "Type" $frontBundle)) 6 }}
<div class="text-center mb-8">
<a class="px-8 py-3 rounded transition-colors {{ .Site.Params.ascentColor | default "bg-pink-50" }}
text-gray-500 hover:text-gray-800 dark:bg-gray-900 dark:text-gray-400 dark:hover:text-white"
href="{{ (index (.Site.Menus.main) 0).URL | absLangURL }}" lang="{{ .Lang }}">
{{ i18n "morePosts" }}
</a>
</div>
{{ end }}
{{- partial "social.html" . -}}
{{ end }}