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

Bud Parr
14.23.2017 3e49105331274943f3ace63010f637c433534ac0
wip home page layout
1 files modified
18 ■■■■ changed files
layouts/index.html 18 ●●●● patch | view | raw | blame | history
layouts/index.html
@@ -8,9 +8,23 @@
  <div class="flex pa3 pa4-ns w-70 center">
    {{ $section := where .Data.Pages "Section" "article" }}
    <section class="w-60 bg-white">
    <section class="w-60 pa4 bg-white">
      {{ range sort (first 1 $section) "Date" "desc"  }}
        <h1>{{ .Title }}</h1>
      {{ 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>