wip home page layout

This commit is contained in:
Bud Parr 2017-04-13 23:23:15 -04:00
parent 6331805b90
commit 3e49105331
No known key found for this signature in database
GPG key ID: ACA375160539D2B3

View file

@ -8,9 +8,23 @@
<div class="flex pa3 pa4-ns w-70 center"> <div class="flex pa3 pa4-ns w-70 center">
{{ $section := where .Data.Pages "Section" "article" }} {{ $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" }} {{ 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 }} {{ end }}
</section> </section>