Skip to content

Commit

Permalink
feat(head): add canonical self reference
Browse files Browse the repository at this point in the history
  • Loading branch information
noxilixon committed Aug 19, 2024
1 parent ea2e1b5 commit e96a5bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
{{ if hugo.IsProduction }}
{{ $js = $js | fingerprint "sha384" }}
{{ end }}
<!-- Canonical links -->
<link rel="canonical" href="{{ .Permalink }}">
<!-- Home background -->
{{ if .IsHome }}
{{ with resources.Get "images/header.webp" }}
<link rel="preload" fetchpriority="high" as="image" href="{{ .RelPermalink }}" type="image/webp">
Expand Down

0 comments on commit e96a5bb

Please sign in to comment.