blog

My blog at www.shimmy1996.com

git clone git://git.shimmy1996.com/blog.git

list.html (988B)

    1 {{ define "main" }}
    2 <nav>
    3   <span class="menu">
    4     {{- range $i, $menu := .Site.Menus.main }}
    5     <a class="entry" href="{{ .URL | relURL }}">{{ .Name }}</a>
    6     {{ end }}
    7     {{ range (sort .Translations ".Language.LanguageName") }}
    8     <a class="entry" href="{{ .RelPermalink }}">{{- .Language.LanguageName }}</a>
    9     {{ end -}}
   10   </span>
   11   <span class="menu-right">
   12     {{ partial "nav_page.html" . }}
   13   </span>
   14 </nav>
   15 <main class="h-feed">
   16   {{ $pag := partial "get_paginator.html" . }}
   17   {{ if (not $pag.HasPrev) }}
   18   {{ .Content }}
   19   {{ end }}
   20   {{ if eq .Section "posts" }}
   21   <nav><ul>
   22   {{ range $pag.Pages.ByDate }}
   23   <li><a href="#{{ .Date.Format "2006-01-02T15-04-05Z07-00"}}">{{ .Title }}</a></li>
   24   {{ end }}
   25   </ul></nav>
   26   {{ end }}
   27   {{ range $pag.Pages.ByDate }}
   28   <div class="h-entry top-border" id="{{ .Date.Format "2006-01-02T15-04-05Z07-00"}}">
   29     {{ partial "header.html" . }}
   30     <div class="e-content">{{ .Content }}</div>
   31   </div>
   32   {{ end }}
   33 </main>
   34 {{ end }}