mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
fix: slug generate
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import GithubSlugger from "github-slugger";
|
||||
import { slug as slugger } from "github-slugger";
|
||||
import type { Frontmatter } from "src/types";
|
||||
|
||||
const slugger = new GithubSlugger().slug;
|
||||
|
||||
export const slugifyStr = (str: string) => slugger(str);
|
||||
|
||||
const slugify = (frontmatter: Frontmatter) =>
|
||||
|
||||
Reference in New Issue
Block a user