diff options
Diffstat (limited to '')
-rw-r--r-- | users/fcuny/notes/layouts/partials/header.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/users/fcuny/notes/layouts/partials/header.html b/users/fcuny/notes/layouts/partials/header.html new file mode 100644 index 0000000..f918823 --- /dev/null +++ b/users/fcuny/notes/layouts/partials/header.html @@ -0,0 +1,15 @@ +<header> + <nav> + <a href="{{ .Site.Home.Permalink }}">{{ .Site.Home.Title }}</a> + <ul> + {{ $currentPage := . }} + {{ range .Site.Menus.main }} + <li> + <a class='{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}menu-active{{ end }}' href="{{ absURL .URL }}"> + {{ .Title }} + </a> + </li> + {{ end }} + </ul> + </nav> +</header> |