diff options
author | Óscar Nájera <hi@oscarnajera.com> | 2022-01-01 21:03:20 +0100 |
---|---|---|
committer | Óscar Nájera <hi@oscarnajera.com> | 2022-01-01 21:03:20 +0100 |
commit | 113d4e53416ddf42212da6f217670bdc6f0c9dd8 (patch) | |
tree | 7e9bcd4a2a274e45da5538fe67c525dfb36680de /layouts/index.html | |
parent | e34ded01904b07456a48cf28f1a5a2d2d77a0be7 (diff) | |
download | hugo-minimalist-theme-113d4e53416ddf42212da6f217670bdc6f0c9dd8.tar.gz hugo-minimalist-theme-113d4e53416ddf42212da6f217670bdc6f0c9dd8.tar.bz2 hugo-minimalist-theme-113d4e53416ddf42212da6f217670bdc6f0c9dd8.zip |
Import new minimalist design
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 22 |
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 }} |