diff options
Diffstat (limited to 'layouts/partials/header.html')
| -rw-r--r-- | layouts/partials/header.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..c9d4310 --- /dev/null +++ b/layouts/partials/header.html | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | {{/* Header */}} | ||
| 2 | |||
| 3 | <div class="header"> | ||
| 4 | |||
| 5 | {{ if or (not (.Param "hideHeader")) .IsHome }} | ||
| 6 | |||
| 7 | <h1 class="header-title"><a class="hover-underline" href="/">{{ site.Title }}</a></h1> | ||
| 8 | |||
| 9 | <div class="flex slash-pages"> | ||
| 10 | {{ $currentPage := . }} | ||
| 11 | |||
| 12 | {{ with site.Params.menu }} | ||
| 13 | {{ range . }} | ||
| 14 | <p class="small {{ if eq .url $currentPage.Path }} bold {{end}}"> | ||
| 15 | <a href="{{.url}}"> | ||
| 16 | /{{.name }} | ||
| 17 | </a> | ||
| 18 | </p> | ||
| 19 | {{ end }} | ||
| 20 | {{ end }} | ||
| 21 | </div> | ||
| 22 | |||
| 23 | {{ end }} | ||
| 24 | |||
| 25 | </div> \ No newline at end of file | ||
