This change adds canonical URL to all pages. Reference: https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls#rel-canonical-link-method
26 lines
600 B
HTML
26 lines
600 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 }}
|