📝 Update documentation for .canonicalUrl

This commit is contained in:
James Panther
2025-06-22 11:49:07 +10:00
parent e5da41b4c2
commit 228c253944
3 changed files with 7 additions and 4 deletions
+5 -3
View File
@@ -95,9 +95,9 @@
<meta name="robots" content="{{ . }}" />
{{ end }}
{{ if .Params.canonicalUrl }}
<link rel="canonical" href="{{ .Params.canonicalUrl }}">
<link rel="canonical" href="{{ .Params.canonicalUrl }}" />
{{ else }}
<link rel="canonical" href="{{ .Permalink }}">
<link rel="canonical" href="{{ .Permalink }}" />
{{ end }}
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink ($.Site.Title | emojify) | safeHTML }}
@@ -133,7 +133,9 @@
{{/* Schema */}}
{{ partial "schema.html" . }}
{{/* Me */}}
{{ with .Site.Language.Params.Author.name }}<meta name="author" content="{{ . }}" />{{ end }}
{{ with .Site.Language.Params.Author.name }}
<meta name="author" content="{{ . }}" />
{{ end }}
{{ with .Site.Language.Params.Author.links }}
{{ range $links := . }}
{{ range $name, $url := $links }}<link href="{{ $url }}" rel="me" />{{ end }}