typo/layouts/partials/head.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

29 lines
676 B
HTML

<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
{{- if .IsHome -}}
<meta name="description" content="{{ site.Params.Description }}" />
{{- else -}}
<meta name="description" content="{{ .Params.Description }}" />
{{- end }}
<title>
{{ if .IsHome }}
{{ site.Title }}
{{ else }}
{{ printf "%s | %s" .Title site.Title }}
{{ end }}
</title>
<link rel="canonical" href="{{ .Permalink }}" />
{{ partialCached "head/css.html" . }}
{{ partialCached "head/js.html" . }}
{{ if hugo.IsProduction }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}
{{ if .Site.Params.umami.enable }}
{{ partial "umami.html" . }}
{{ end }}