mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Bud Parr
11.44.2017 a1e4b649102c9bbd8bbc4fdba30131c2c1d3eb95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{{ define "main" }}
 
  <main class="cf ph3 ph5-l pv3 pv4-l f4 tc center measure-wide lh-copy mid-gray">
    {{ .Content }}
  </main>
  <div class="pa3 pa4-ns">
    {{ $section := where .Data.Pages "Section" "article" }}
 
    <section class="flex-ns flex-wrap justify-around">
      {{ range sort (first 1 $section) "Date" "desc"  }}
        {{ .Render "summary" }}
        {{ end }}
    </section>
 
    <section class="flex-ns flex-wrap justify-around">
      {{ range sort (first 2 (after 1 $section)) "Date" "desc"  }}
        {{ .Render "summary" }}
        {{ end }}
    </section>
 
 
    </div>
{{ end }}