Add language metadata to RSS feed

This commit is contained in:
Helen Chong 2024-12-27 10:13:21 +08:00
parent 26aa6ba2e1
commit 955bcc70ca
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ eleventyComputed:
baseUrl: "{{ sitemeta.siteUrl }}/"
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ sitemeta.siteLanguage or page.lang }}">
<title>{{ sitemeta.siteName }}</title>
<subtitle>{{ sitemeta.siteDescription }}</subtitle>
<link href="{{ sitemeta.feedUrl }}" rel="self"/>