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

Bud Parr
14.23.2017 3e49105331274943f3ace63010f637c433534ac0
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{{ define "main" }}
 
  <main class="cf ph3 ph5-l pv3 pv4-l f4 tc center measure-wide lh-copy mid-gray">
    {{ .Content }}
  </main>
 
 
  <div class="flex pa3 pa4-ns w-70 center">
    {{ $section := where .Data.Pages "Section" "article" }}
 
    <section class="w-60 pa4 bg-white">
      {{ range sort (first 1 $section) "Date" "desc"  }}
      {{ if .Date }}
        <date class="f6">
          {{ .Date.Format "January 2, 2006" }}
        </date>
      {{ end }}
      <h1 class="f3 near-black">
        <a href="{{ .URL }}" class="link black dim">
          {{ .Title }}
        </a>
      </h1>
      <div class="nested-links f5 nested-copy-line-height">
        <p>
          {{ .Summary  }}
        </p>
      </div>
      {{ end }}
    </section>
 
    <section class="w-30 ph4">
      {{ range sort (first 2 (after 1 $section)) "Date" "desc"  }}
        <h2 class="f4">{{ .Title }}</h2>
        {{ end }}
    </section>
 
 
    </div>
 
 
 
 
{{ end }}