Merge pull request #56 from tangly1024/bug-fix-feed

rss-BUG
This commit is contained in:
tangly1024
2022-02-19 10:14:21 +08:00
committed by GitHub

View File

@@ -4,14 +4,14 @@ import BLOG from '@/blog.config'
export function generateRss (posts) { export function generateRss (posts) {
const year = new Date().getFullYear() const year = new Date().getFullYear()
const feed = new Feed({ const feed = new Feed({
TITLE: BLOG.TITLE, title: BLOG.TITLE,
DESCRIPTION: BLOG.DESCRIPTION, description: BLOG.DESCRIPTION,
id: `${BLOG.LINK}/${BLOG.PATH}`, id: `${BLOG.LINK}/${BLOG.PATH}`,
LINK: `${BLOG.LINK}/${BLOG.PATH}`, link: `${BLOG.LINK}/${BLOG.PATH}`,
language: BLOG.LANG, language: BLOG.LANG,
favicon: `${BLOG.LINK}/favicon.png`, favicon: `${BLOG.LINK}/favicon.png`,
copyright: `All rights reserved ${year}, ${BLOG.AUTHOR}`, copyright: `All rights reserved ${year}, ${BLOG.AUTHOR}`,
AUTHOR: { author: {
name: BLOG.AUTHOR, name: BLOG.AUTHOR,
email: BLOG.CONTACT_EMAIL, email: BLOG.CONTACT_EMAIL,
link: BLOG.LINK link: BLOG.LINK