From 113d4e53416ddf42212da6f217670bdc6f0c9dd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Sat, 1 Jan 2022 21:03:20 +0100 Subject: Import new minimalist design --- layouts/index.html | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'layouts/index.html') 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" }} - - {{ $paginator := .Paginate (where .Data.Pages "Section" "post") }} - {{ range $paginator.Pages }} - {{ .Render "summary" }} +{{ partial "hero.html" . }} + + +{{ range $index, $element := where .Pages "Type" "in" .Site.Params.mainSections }} +{{ partial "open_section.html" . }} + + {{ range first .Params.index_show .Pages.ByPublishDate.Reverse }} +
+ {{ partial "post.html" . }} +
{{ end }} - {{ partial "pagination.html" . }} + +
+ + See all +
+ +{{ end }} {{ end }} -- cgit v1.2.3