{{ if .Site.Params.logo }} {{ .Site.Params.Title }}{{end}}
    {{ $currentNode := . }} {{with .Site.Menus.main}} {{ range sort . "Weight" "desc"}}
  • {{.Name}}
  • {{end}}{{end}}
{{ if .Site.Params.fbName }}{{end}} {{ if .Site.Params.twitterName }}{{end}} {{ if .Site.Params.githubName }}{{end}}
{{ if .Site.Params.RSSLink}} Subscribe
{{else}} Subscribe {{end}}

{{.Title}}

{{$.Scratch.Set "total" (len .Data.Pages)}}

{{if ge ($.Scratch.Get "total") 2 }}A collection of {{$.Scratch.Get "total"}} posts {{else}}{{$.Scratch.Get "total"}} post{{end}}