Replaced contentlayer with keystatic

This commit is contained in:
giancarlo
2024-04-10 14:52:18 +08:00
parent f729bf6077
commit 006c4d430f
37 changed files with 2842 additions and 2776 deletions

View File

@@ -24,6 +24,7 @@
"@kit/prettier-config": "workspace:*",
"@kit/tsconfig": "workspace:*",
"@kit/ui": "*",
"@types/node": "^20.12.7",
"wp-types": "^3.64.0"
},
"eslintConfig": {

View File

@@ -1,3 +1,3 @@
export function WordpressContentRenderer(props: { content: string }) {
return <div dangerouslySetInnerHTML={{ __html: props.content }} />;
export function WordpressContentRenderer(props: { content: unknown }) {
return <div dangerouslySetInnerHTML={{ __html: props.content as string }} />;
}