<nav>{{ range .Site.Sections }} <a href="{{.Permalink}}"> <img src="{{.Params.icon}}"> <h2>{{.Title}}</h2> {{if .Params.icon}} {{end}} </a> {{end}} </nav>