diff options
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 27 |
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 }} |