Skip to content

Commit

Permalink
fix: hreflang for link rel=alternate uses site language code (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 authored Oct 1, 2024
1 parent b655b0b commit 657807f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/docs/html-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<link rel="canonical" href="{{ .Permalink }}">

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

<!-- Theme stylesheet, you can customize scss by creating `assets/custom.scss` in your website -->
Expand Down

0 comments on commit 657807f

Please sign in to comment.