From 14f097c70cd850298eec3bdc760b72178bf4dcee Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Wed, 1 Mar 2023 19:17:33 -0800 Subject: [PATCH] Add horizontal rules between posts in feed --- layouts/index.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index f383ac7..862f95b 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -4,9 +4,16 @@ {{ if eq $pagination.PageNumber 1 }}

{{ .Title }}

{{ partial "content.html" .Content }} -
{{ end }} + {{ $scratch := newScratch }} + {{ $scratch.Add "i" 0 }} {{ range $pagination.Pages }} + {{ if or ($scratch.Get "i" | ne 0) (eq $pagination.PageNumber 1) }} +
+
+
+ {{ end }} + {{ $scratch.Set "i" ($scratch.Get "i" | add 1) }}

{{ partial "content.html" .Title }}

@@ -15,7 +22,6 @@
{{ partial "content.html" .Content | truncate 500 }} Read more »
-
{{ end }} {{ partial "pagination.html" $pagination }} {{ end }}