- Updated header.html with necessary changes. - Added support for Umami along with relevant configurable options. - Included a new umami.html file for tracking.
26 lines
586 B
HTML
26 lines
586 B
HTML
{{/* Header */}}
|
|
|
|
<div class="header">
|
|
|
|
{{ if or (not (.Param "hideHeader")) .IsHome }}
|
|
|
|
<h1 class="header-title">{{ site.Title }}</h1>
|
|
|
|
<div class="flex">
|
|
{{ $currentPage := . }}
|
|
|
|
{{ with site.Params.menu }}
|
|
{{ range . }}
|
|
<p class="small {{ if eq .url $currentPage.Path }} bold {{end}}">
|
|
<a href="{{ .url }}" {{ if and (isset . "newTab") .newTab }}target="_blank" rel="noopener noreferrer"{{ end }}>
|
|
/{{ .name }}
|
|
</a>
|
|
</p>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|