feat: limit homepage gallery to 4 posts

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-11 16:24:21 +02:00
parent 52c2b11fa9
commit 847a7bc6d1
+2 -2
View File
@@ -130,12 +130,12 @@
</div> </div>
<div class="relative z-10 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-5"> <div class="relative z-10 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-5">
{{- range first 8 $latest -}} {{- range first 4 $latest -}}
{{- partial "post-card.html" . -}} {{- partial "post-card.html" . -}}
{{- end -}} {{- end -}}
</div> </div>
{{- if gt (len $latest) 8 -}} {{- if gt (len $latest) 4 -}}
<div class="relative z-10 mt-14 text-center"> <div class="relative z-10 mt-14 text-center">
<a href="/posts/" class="btn btn-outline" <a href="/posts/" class="btn btn-outline"
>View All {{ len $posts }} Posts {{ partial "icon.html" "arrow-right" }}</a >View All {{ len $posts }} Posts {{ partial "icon.html" "arrow-right" }}</a