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

Bud Parr
14.01.2017 6331805b90cf2214dfde541473cb6fecabfbd577
layouts/index.html
@@ -3,21 +3,27 @@
  <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">
  <div class="flex pa3 pa4-ns w-70 center">
    {{ $section := where .Data.Pages "Section" "article" }}
    <section class="flex-ns flex-wrap justify-around">
    <section class="w-60 bg-white">
      {{ range sort (first 1 $section) "Date" "desc"  }}
        {{ .Render "summary" }}
        {{ end }}
        <h1>{{ .Title }}</h1>
      {{ end }}
    </section>
    <section class="flex-ns flex-wrap justify-around">
    <section class="w-30 ph4">
      {{ range sort (first 2 (after 1 $section)) "Date" "desc"  }}
        {{ .Render "summary" }}
        <h2 class="f4">{{ .Title }}</h2>
        {{ end }}
    </section>
    </div>
{{ end }}