ananke/layouts/_default/single.html
2017-04-10 23:48:09 -04:00

33 lines
762 B
HTML
Executable file

{{ define "header" }}{{ partial "page-header.html" . }}{{ end }}
{{ define "main" }}
{{ $currentPageUrl := .URL }}
{{ $currentSection := where .Site.Pages "Section" .Section }}
<div class="flex flex-wrap">
<aside class="w-20 pa4 bg-light-silver">
<ul>
{{ range $currentSection }}
<li>
<a href="{{ .URL }}" class="link">
{{ .Title }}
</a>
</li>
{{ end }}
</ul>
</aside>
<article class="center cf pv5 measure-wide-l">
<h4 class="f6">
{{ humanize .Section | upper }}
</h4>
<h1>
{{ .Title }}
</h1>
<div class="nested-copy-line-height nested-links nested-img mid-gray measure-wide-l">
{{ .Content | markdownify }}
</div>
</article>
</div>
{{ end }}