diff --git a/next.config.js b/next.config.js index 5fb982d..7a1b533 100644 --- a/next.config.js +++ b/next.config.js @@ -1,9 +1,9 @@ // next.config.js module.exports = { - // experimental: { - // appDir: true, - // }, + experimental: { + // appDir: true, + }, i18n: { locales: ["zh", "en"], // post.en.md, post.ja.md defaultLocale: "zh", // post.zh.md or post.md diff --git a/styles/globals.css b/styles/globals.css index 3c8542e..540b295 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -40,15 +40,15 @@ @apply px-4; } - code[data-theme*=" "], - code[data-theme*=" "] span { + code[data-theme], + code[data-theme] span { color: var(--shiki-light); background-color: var(--shiki-light-bg); } @media (prefers-color-scheme: dark) { - code[data-theme*=" "], - code[data-theme*=" "] span { + code[data-theme], + code[data-theme] span { color: var(--shiki-dark); background-color: var(--shiki-dark-bg); }