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

{{ define "main" }}
  {{ range $index, $element :=  (where .Pages "Type" "in" .Site.Params.mainSections).ByWeight }}
    <div class="stripe-dark">
      <div class="mw7 center pv2">
        <h2
          id="{{ anchorize .Title | safeURL }}"
          class="baskerville lh-title f2"
        >
          {{ .Title }}
        </h2>
        {{ 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 }}