Skip to content

Commit

Permalink
#521: add canonical url to the header
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-shpak committed Feb 17, 2024
1 parent cba1eb6 commit 01645fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions layouts/partials/docs/html-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
{{- $manifest := resources.Get "manifest.json" | resources.ExecuteAsTemplate "manifest.json" . }}
<link rel="manifest" href="{{ $manifest.RelPermalink }}">
<link rel="icon" href="{{ .Site.Params.BookFavicon | default "favicon.png" | relURL }}" >
<link rel="canonical" href="{{ .Permalink }}">

{{- range .Translations }}
<link rel="alternate" hreflang="{{ default .Language.Lang .Site.LanguageCode }}" href="{{ .Permalink }}" title="{{ partial "docs/title" . }}">
Expand Down

0 comments on commit 01645fc

Please sign in to comment.