hugo-ataru

Hugo theme with titleless posts and microformats2 support

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

nav_page.html (329B)

    1 {{ if .IsNode }}
    2 {{ $pag := partial "get_paginator.html" . }}
    3 {{ if $pag.HasNext }}<a href="{{ $pag.Next.URL }}">←</a>{{ else }}←{{ end }}
    4 {{ if (eq $pag.TotalPages 0) }}0{{ else }}{{ $pag.PageNumber }}{{ end }}/{{ $pag.TotalPages }}
    5 {{ if $pag.HasPrev }}<a href="{{ $pag.Prev.URL }}">→</a>{{ else }}→{{ end }}
    6 {{ end }}