mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-24 23:16:52 +00:00
Merge pull request #3287 from LooseLi/dev
修复sitemap多个斜杠导致无法自动编入索引#3260;修复自定义备案链接不生效#3267 #3244
This commit is contained in:
@@ -6,7 +6,11 @@ import { siteConfig } from './config'
|
||||
* @param {*} param0
|
||||
*/
|
||||
export async function generateSitemapXml({ allPages, NOTION_CONFIG }) {
|
||||
const link = siteConfig('LINK', BLOG.LINK, NOTION_CONFIG)
|
||||
let link = siteConfig('LINK', BLOG.LINK, NOTION_CONFIG)
|
||||
// 确保链接不以斜杠结尾
|
||||
if (link && link.endsWith('/')) {
|
||||
link = link.slice(0, -1)
|
||||
}
|
||||
const urls = [
|
||||
{
|
||||
loc: `${link}`,
|
||||
|
||||
Reference in New Issue
Block a user