Skip to content

Commit

Permalink
fix: Default language should use the similar url pattern with other l…
Browse files Browse the repository at this point in the history
…anguages (#211)
  • Loading branch information
blackpill authored Aug 16, 2024
1 parent daafb70 commit 9196b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jekyll/polyglot/liquid/tags/i18n_headers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def render(context)
site_url = @url.empty? ? site.config['url'] : @url
i18n = "<meta http-equiv=\"Content-Language\" content=\"#{site.active_lang}\">\n"
i18n += "<link rel=\"alternate\" hreflang=\"#{site.default_lang}\" "\
"href=\"#{site_url}#{permalink}\"/>\n"
"href=\"#{site_url}/#{permalink}\"/>\n"
site.languages.each do |lang|
next if lang == site.default_lang

Expand Down

0 comments on commit 9196b96

Please sign in to comment.