fix: `hreflang` tag attribute of feed misses `site.alt_lang`

This commit is contained in:
Cotes Chung 2022-12-08 07:01:20 +08:00
parent 5561cd86b5
commit 7651d2851b
No known key found for this signature in database
GPG Key ID: 0D9E54843167A808
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ permalink: /feed.xml
<uri>{{ "/" | absolute_url }}</uri> <uri>{{ "/" | absolute_url }}</uri>
</author> </author>
<link rel="self" type="application/atom+xml" href="{{ page.url | absolute_url }}"/> <link rel="self" type="application/atom+xml" href="{{ page.url | absolute_url }}"/>
<link rel="alternate" type="text/html" hreflang="{{ site.lang }}" <link rel="alternate" type="text/html" hreflang="{{ site.alt_lang | default: site.lang }}"
href="{{ '/' | absolute_url }}"/> href="{{ '/' | absolute_url }}"/>
<generator uri="https://jekyllrb.com/" version="{{ jekyll.version }}">Jekyll</generator> <generator uri="https://jekyllrb.com/" version="{{ jekyll.version }}">Jekyll</generator>
<rights> © {{ 'now' | date: '%Y' }} {{ site.social.name }} </rights> <rights> © {{ 'now' | date: '%Y' }} {{ site.social.name }} </rights>