hugo-ataru

Hugo theme with titleless posts and microformats2 support

git clone git://git.shimmy1996.com/hugo-ataru.git

list.html (568B)

    1 {{ define "main" }}
    2 <nav>{{ partial "nav_page.html" . }}</nav>
    3 <nav>
    4   {{- range $i, $menu := .Site.Menus.main -}}
    5   {{- if (ge $i 1) }}&nbsp;|&nbsp;{{ end -}}
    6   <a href="{{ .URL | relURL }}">{{ .Name }}</a>
    7   {{- end -}}
    8   {{ partial "language.html" . }}
    9 </nav>
   10 <main class="h-feed">
   11   {{ $pag := partial "get_paginator.html" . }}
   12   {{ if (not $pag.HasPrev) }}
   13   {{ .Content }}
   14   {{ end }}
   15   {{ range $pag.Pages.ByDate }}
   16   <div class="h-entry">
   17     {{ partial "header.html" . }}
   18     <div class="e-content">{{ .Content }}</div>
   19   </div>
   20   {{ end }}
   21 </main>
   22 {{ end }}