From b5520f925fea031fc04d672dbb2f8a40fcddf48d Mon Sep 17 00:00:00 2001 From: 0xB917 <50108258+kwaa@users.noreply.github.com> Date: Fri, 31 Dec 2021 18:00:57 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20atom=20title=20with=20CDATA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix #3 --- src/routes/atom.xml.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/atom.xml.ts b/src/routes/atom.xml.ts index 4f1fb173..07f5f7d9 100644 --- a/src/routes/atom.xml.ts +++ b/src/routes/atom.xml.ts @@ -4,13 +4,13 @@ import { genPosts } from '$lib/utils/posts' const render = async (): Promise => ` - ${site.title} - ${site.subtitle ? `${site.subtitle}` : ''} + <![CDATA[${site.title}]]> + ${site.subtitle ? `` : ''} ${new Date().toJSON()} - ${site.author.name} + ${site.url}/ ${Object.entries(await genPosts())