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

View file

@ -15,7 +15,7 @@ permalink: /feed.xml
<uri>{{ "/" | absolute_url }}</uri>
</author>
<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 }}"/>
<generator uri="https://jekyllrb.com/" version="{{ jekyll.version }}">Jekyll</generator>
<rights> © {{ 'now' | date: '%Y' }} {{ site.social.name }} </rights>