aboutsummaryrefslogtreecommitdiff
path: root/themes/terrassa/layouts/partials/sections.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/terrassa/layouts/partials/sections.html')
-rw-r--r--themes/terrassa/layouts/partials/sections.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/themes/terrassa/layouts/partials/sections.html b/themes/terrassa/layouts/partials/sections.html
new file mode 100644
index 0000000..6d4cfc3
--- /dev/null
+++ b/themes/terrassa/layouts/partials/sections.html
@@ -0,0 +1,10 @@
+{{ $items := (where $.Site.RegularPages "Type" "sections") }}
+{{ $len := (len $items) }}
+
+{{ range $i, $e := $items }}
+{{ partial "section.html" .}}
+
+{{ if ne (add $i 1) $len }}
+{{ partial "separator.html" . }}
+{{ end }}
+{{ end}} \ No newline at end of file