This commit is contained in:
tangly1024
2022-02-19 10:12:51 +08:00
parent ff330d82dd
commit 06fe130ba9

View File

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