acoeur/themes/acoeur/layouts/index.html

37 lines
1.2 KiB
HTML

{{ define "header" }}
{{/* We can override any block in the baseof file be defining it in the template */}}
{{ partial "page-header.html" . }}
{{ end }}
{{ define "main" }}
<article class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}">
{{ .Content }}
</article>
<dl class="links">
{{ range .Sections }}
<dt class="{{ .Section }}">
<a href="{{ .RelPermalink }}" class="link grow">{{ .Title }}</a>
</dt>
<dd class="{{ .Section }}">{{ add (len .Pages) (len .Resources) }}</dd>
{{ end }}
{{ with site.GetPage "groups" }}
<dt>
<a href="{{ .RelPermalink }}" class="link grow">{{ .Title }}</a>
</dt>
<dd>{{ len site.Taxonomies.groups }}</dd>
{{ end }}
</dl>
{{ with site.GetPage "users" }}
<section class="flex flex-column flex-row-ns flex-wrap">
{{ range .RegularPagesRecursive }}
<span class="w-100 w-third-ns with-breadcrumb no-text">
{{ .Render "summary-with-image" }}
</span>
{{ end }}
</section>
{{ end }}
{{ end }}