Skip to content

Commit

Permalink
代码格式化
Browse files Browse the repository at this point in the history
  • Loading branch information
tangly1024 committed Sep 27, 2024
1 parent 60fc788 commit 3d68b35
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/notion/getPageProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import formatDate from '../utils/formatDate'
import md5 from 'js-md5'
import { siteConfig } from '../config'
import {
checkStartWithHttp,
convertUrlStartWithOneSlash,
getLastSegmentFromUrl
checkStartWithHttp,
convertUrlStartWithOneSlash,
getLastSegmentFromUrl
} from '../utils'
import { extractLangPrefix } from '../utils/pageId'
import { mapImgUrl } from './mapImage'
Expand Down Expand Up @@ -291,9 +291,9 @@ function generateCustomizeSlug(postProperties, NOTION_CONFIG) {
fullPrefix = fullPrefix.substring(0, fullPrefix.length - 1) // 去掉尾部部的"/"
}

if(fullPrefix){
if (fullPrefix) {
return `${fullPrefix}/${postProperties.slug ?? postProperties.id}`
}else{
} else {
return `${postProperties.slug ?? postProperties.id}`
}
}

0 comments on commit 3d68b35

Please sign in to comment.