aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/index.html
blob: c10f2ecb49b7afbaae1651cff05dcdd0a5d1c639 (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 pa1">
        <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 }}