summaryrefslogtreecommitdiff
path: root/themes/conspiracy/layouts/partials/header.html
blob: 675f899cd15b92bb986413759ff2eed5285b36b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<nav>
    {{- $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 }}
    <span class="spacer"></span>
    {{- range site.Params.profile_links }}
    <a href="{{ .url | absURL }}" title="{{ .name }}">{{ .name }}</a>
    {{- end }}
</nav>