diff --git a/layouts/index.html b/layouts/index.html index ee8722f..00893a0 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,5 +1,7 @@ {{ define "main" }} {{ with .Site.GetPage "/home"}} + +{{ $lastIndex := (sub (len (.Resources.ByType "page")) 1) }} {{ range $index, $st := .Resources.ByType "page" }} {{ if ne $st.Params.hidden true }} @@ -7,7 +9,12 @@ {{ $widget_path := printf "widgets/%s.html" $widget}} {{ partial $widget_path $st }} {{ if ne $widget "blank" }} -
+ +{{ $lastSeparatorClass := "" }} +{{ if eq $index $lastIndex }} +{{ $lastSeparatorClass = "mb-12" }} +{{ end }} +
{{ end }} {{ end }} {{ end }} @@ -17,4 +24,4 @@ {{ end }} -{{ end }} \ No newline at end of file +{{ end }}