aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/index.html
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-10-13 03:12:43 +0200
committerOscar Najera <hi@oscarnajera.com>2023-10-13 03:14:55 +0200
commit82fdcd672008651dd76f8b1f506f534145d5cc7a (patch)
treed1678ccb7345170866a7dba2feed59b70ac6ea89 /layouts/index.html
parent4bbc7b9a7de0002173f38918cfd69a6e64d86e00 (diff)
downloadhugo-minimalist-theme-82fdcd672008651dd76f8b1f506f534145d5cc7a.tar.gz
hugo-minimalist-theme-82fdcd672008651dd76f8b1f506f534145d5cc7a.tar.bz2
hugo-minimalist-theme-82fdcd672008651dd76f8b1f506f534145d5cc7a.zip
Striped sections
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html27
1 files changed, 16 insertions, 11 deletions
diff --git a/layouts/index.html b/layouts/index.html
index b75e6f8..cf04902 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,17 +1,22 @@
{{ define "hero" }}
-{{ partial "hero.html" . }}
+ {{ partial "hero.html" . }}
{{ end }}
{{ define "main" }}
-<!-- Page Content -->
-{{ range $index, $element := where .Pages "Type" "in" .Site.Params.mainSections }}
-{{ range first 4 .Pages.ByPublishDate.Reverse }}
-{{ partial "post.html" . }}
-{{ end }}
+ <!-- Page Content -->
-<div class="tc pa3">
- <i class="fas fa-angle-right"></i>
- <a href="{{ .Type }}" class="f3 link near-black">See all</a>
-</div>
-{{ end }}
+ <div class="stripe-dark"></div>
+ {{ range $index, $element := where .Pages "Type" "in" .Site.Params.mainSections }}
+ <div class="stripe-dark">
+ <div class="mw7 center">
+ {{ range first 3 .Pages.ByPublishDate.Reverse }}
+ {{ partial "post.html" . }}
+ {{ end }}
+ <div class="tc pa3">
+ <i class="fas fa-angle-right"></i>
+ <a href="{{ .Type }}" class="f3 link near-black">See all</a>
+ </div>
+ </div>
+ </div>
+ {{ end }}
{{ end }}