aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html22
1 files changed, 17 insertions, 5 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 9b143c0..b256f80 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,8 +1,20 @@
{{ define "main" }}
- <!-- Note that .Data.Pages is the equivalent of .Site.Pages on the homepage template. -->
- {{ $paginator := .Paginate (where .Data.Pages "Section" "post") }}
- {{ range $paginator.Pages }}
- {{ .Render "summary" }}
+{{ partial "hero.html" . }}
+
+<!-- Page Content -->
+{{ range $index, $element := where .Pages "Type" "in" .Site.Params.mainSections }}
+{{ partial "open_section.html" . }}
+
+ {{ range first .Params.index_show .Pages.ByPublishDate.Reverse }}
+ <div class="stripe-dark">
+ {{ partial "post.html" . }}
+ </div>
{{ end }}
- {{ partial "pagination.html" . }}
+
+ <div class="tc pa3">
+ <i class="fas fa-angle-right"></i>
+ <a href="{{ .Type }}" class="f3 link near-white">See all</a>
+ </div>
+ </div>
+{{ end }}
{{ end }}