typo/layouts/partials/header.html
P家单推人 25053653e4 Update header.html and add support for Umami
- Updated header.html with necessary changes.
- Added support for Umami along with relevant configurable options.
- Included a new umami.html file for tracking.
2024-08-11 12:18:49 +08:00

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>