feat: upgrade next 14.1, tailwind 3.4 and pliny 0.1.7

This commit is contained in:
Timothy Lin
2024-01-28 11:28:05 +08:00
parent 6c79596f0d
commit 2aa47049e6
4 changed files with 179 additions and 189 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import { defineDocumentType, ComputedFields, makeSource } from 'contentlayer/source-files'
import { writeFileSync } from 'fs'
import readingTime from 'reading-time'
import GithubSlugger from 'github-slugger'
import { slug } from 'github-slugger'
import path from 'path'
// Remark packages
import remarkGfm from 'remark-gfm'
@@ -50,7 +50,7 @@ function createTagCount(allBlogs) {
allBlogs.forEach((file) => {
if (file.tags && (!isProduction || file.draft !== true)) {
file.tags.forEach((tag) => {
const formattedTag = GithubSlugger.slug(tag)
const formattedTag = slug(tag)
if (formattedTag in tagCount) {
tagCount[formattedTag] += 1
} else {