<div class="links"> <a href="{{ .Site.BaseURL }}">Home</a> {{ range first 1 (where .Site.Pages "Type" "post") }} <a href="{{ .Site.BaseURL }}post/">Archive</a> {{ end }} {{ range where .Site.Pages "Type" "!=" "post" }} <a href="{{ .Permalink }}">{{ .Title }}</a> {{ end }} <a href="#top">Top</a> </div> </body> </html>