fix: homepage posts size = 8
This commit is contained in:
+2
-2
@@ -117,12 +117,12 @@
|
||||
</div>
|
||||
|
||||
<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 4 $latest -}}
|
||||
{{- range first 8 $latest -}}
|
||||
{{- partial "post-card.html" . -}}
|
||||
{{- end -}}
|
||||
</div>
|
||||
|
||||
{{- if gt (len $latest) 4 -}}
|
||||
{{- if gt (len $latest) 8 -}}
|
||||
<div class="relative z-10 mt-14 text-center">
|
||||
<a href="/posts/" class="btn btn-outline">View All {{ len $posts }} Posts {{ partial "icon.html" "arrow-right" }}</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user