<nav> <div class="internal"> {{- $currentPage := . }} <!-- todo: put this in a "pages" drop down on mobile --> {{- range site.Menus.main }} {{- $menu_item_url := .URL | absURL }} {{- $page_url:= $currentPage.Permalink | absURL }} <a href="{{ .URL }}" title="{{ .Title | default .Name }}" {{- if eq $menu_item_url $page_url }} class="active" {{- end }}> {{- .Pre }} {{- .Name -}} {{ .Post -}} </a> {{- end }} </div> <div class="external"> {{- range site.Params.profile_links }} <a href="{{ .url | absURL }}" title="{{ .name }}">{{ .name }}</a> {{- end }} </span> </nav>