hugo-djem-so

Hugo theme for my blog

git clone git://git.shimmy1996.com/hugo-djem-so.git

list.html (332B)

    1 {{ define "extras" }}
    2 <nav>
    3   <ul>
    4     {{ $pages := .Data.Pages }}
    5     {{ if .IsHome }}
    6     {{ $pages = (first 5 (where .Site.RegularPages "Section" "!=" "")) }}
    7     {{ end }}
    8     {{ range $pages }}
    9     <li>{{ .Date.Format "2006-01-02" }}&nbsp;<a href="{{ .Permalink }}">{{ .Title }}</a></li>
   10     {{ end }}
   11   </ul>
   12 </nav>
   13 {{ end }}