summaryrefslogtreecommitdiff
path: root/themes/conspiracy/layouts/partials/header.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/conspiracy/layouts/partials/header.html')
-rw-r--r--themes/conspiracy/layouts/partials/header.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/themes/conspiracy/layouts/partials/header.html b/themes/conspiracy/layouts/partials/header.html
new file mode 100644
index 0000000..675f899
--- /dev/null
+++ b/themes/conspiracy/layouts/partials/header.html
@@ -0,0 +1,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>