feat: upgrade next 14.1, tailwind 3.4 and pliny 0.1.7
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user