mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-04 23:16:53 +00:00
Merge branch 'main' into deploy/preview.tangly1024.com
This commit is contained in:
@@ -9,7 +9,6 @@ import { getPostBlocks, getSingleBlock } from '@/lib/notion/getPostBlocks'
|
|||||||
import { compressImage, mapImgUrl } from '@/lib/notion/mapImage'
|
import { compressImage, mapImgUrl } from '@/lib/notion/mapImage'
|
||||||
import { deepClone } from '@/lib/utils'
|
import { deepClone } from '@/lib/utils'
|
||||||
import { idToUuid } from 'notion-utils'
|
import { idToUuid } from 'notion-utils'
|
||||||
import { siteConfig } from '../config'
|
|
||||||
import { extractLangId, extractLangPrefix } from '../utils/pageId'
|
import { extractLangId, extractLangPrefix } from '../utils/pageId'
|
||||||
|
|
||||||
export { getAllTags } from '../notion/getAllTags'
|
export { getAllTags } from '../notion/getAllTags'
|
||||||
@@ -193,10 +192,7 @@ function getCustomMenu({ collectionData, NOTION_CONFIG }) {
|
|||||||
if (menuPages && menuPages.length > 0) {
|
if (menuPages && menuPages.length > 0) {
|
||||||
menuPages.forEach(e => {
|
menuPages.forEach(e => {
|
||||||
e.show = true
|
e.show = true
|
||||||
if (
|
if (e?.slug?.indexOf('http') === 0) {
|
||||||
e?.slug?.indexOf('http') === 0 &&
|
|
||||||
e?.slug?.indexOf(siteConfig('LINK', BLOG.LINK, NOTION_CONFIG)) < 0
|
|
||||||
) {
|
|
||||||
e.target = '_blank'
|
e.target = '_blank'
|
||||||
e.to = e.slug
|
e.to = e.slug
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user