aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/index.html
blob: cf04902193755ec7f2703a3c3da6ad944f293e7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{{ define "hero" }}
  {{ partial "hero.html" . }}
{{ end }}

{{ define "main" }}
  <!-- Page Content -->

  <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 }}