NEXT主题-fontawesome改成引用CDN

This commit is contained in:
tangly1024
2022-02-26 21:23:59 +08:00
parent bebde04f15
commit 20cb91c577
42 changed files with 215 additions and 274 deletions

View File

@@ -50,10 +50,7 @@ function getTagNames (tags) {
export async function getStaticPaths () {
const from = 'tag-static-path'
const { tags } = await getGlobalNotionData({
from,
tagsCount: 0
})
const { tags } = await getGlobalNotionData({ from, tagsCount: 0 })
const tagNames = getTagNames(tags)
return {

View File

@@ -8,16 +8,7 @@ const TagIndex = (props) => {
export async function getStaticProps () {
const from = 'tag-index-props'
const {
categories,
tags,
postCount,
latestPosts
} = await getGlobalNotionData({
from,
includePage: false,
tagsCount: 0
})
const { categories, tags, postCount, latestPosts } = await getGlobalNotionData({ from, tagsCount: 0 })
return {
props: {