ananke/layouts/index.html

54 lines
1.1 KiB
HTML
Raw Normal View History

2017-04-11 03:27:13 +02:00
{{ define "main" }}
2017-04-11 14:53:11 +02:00
<main class="cf ph3 ph5-l pv3 pv4-l f4 tc center measure-wide lh-copy mid-gray">
2017-04-11 03:27:13 +02:00
{{ .Content }}
2017-04-14 18:37:12 +02:00
2017-04-11 03:27:13 +02:00
</main>
2017-04-14 05:01:23 +02:00
2017-04-14 18:37:12 +02:00
<div class="pa3 pa4-ns w-70 center">
<h1 class="flex-none db">Recent Articles</h1>
<div class="flex">
{{ $section := where .Data.Pages "Section" "article" }}
2017-04-14 05:23:15 +02:00
<section class="w-60 pa4 bg-white">
{{ range sort (first 1 $section) "Date" "desc" }}
2017-04-14 05:23:15 +02:00
{{ if .Date }}
<date class="f6">
{{ .Date.Format "January 2, 2006" }}
</date>
{{ end }}
2017-04-14 18:37:12 +02:00
<h2 class="f3 near-black">
2017-04-14 05:23:15 +02:00
<a href="{{ .URL }}" class="link black dim">
{{ .Title }}
</a>
2017-04-14 18:37:12 +02:00
</h2>
2017-04-14 05:23:15 +02:00
<div class="nested-links f5 nested-copy-line-height">
<p>
{{ .Summary }}
</p>
</div>
2017-04-14 05:01:23 +02:00
{{ end }}
</section>
2017-04-14 05:01:23 +02:00
<section class="w-30 ph4">
2017-04-14 18:37:12 +02:00
{{ range sort (first 4 (after 1 $section)) "Date" "desc" }}
<h2 class="f5 fw4 mb4">
<a href="{{ .URL }}" class="link black dim">
{{ .Title }}
</a>
</h2>
{{ end }}
</section>
2017-04-11 14:53:11 +02:00
</div>
2017-04-14 18:37:12 +02:00
</div>
2017-04-14 05:01:23 +02:00
2017-04-11 03:27:13 +02:00
{{ end }}