diff --git a/next.config.js b/next.config.js index 2edebd44aaf..0a8bd36d070 100644 --- a/next.config.js +++ b/next.config.js @@ -90,13 +90,6 @@ module.exports = withBundleAnalyzer({ // 'react-dom': 'preact/compat' // }) // } - - // 排除所有后缀名为 .md 的文件的编译 - config.module.rules.push({ - test: /\.md$/, - use: 'raw-loader' - }); - // 动态主题:添加 resolve.alias 配置,将动态路径映射到实际路径 config.resolve.alias['@theme-components'] = path.resolve(__dirname, 'themes', THEME) return config diff --git a/themes/heo/README.md b/themes/heo/README.md deleted file mode 100644 index 61d6df9deae..00000000000 --- a/themes/heo/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# HEO 主题说明 - -> 主题设计者 [张洪](https://zhheo.com/) -> 主题开发者 [tangly1024](https://github.com/tangly1024) - -1. 开启方式 在blog.config.js 将主题配置为 `HEO` -2. 更多说明参考此[文档](https://docs.tangly1024.com/article/notionnext-heo) \ No newline at end of file diff --git a/themes/heo/components/MenuListTop.js b/themes/heo/components/MenuListTop.js index 381b5adb240..de6194cd216 100644 --- a/themes/heo/components/MenuListTop.js +++ b/themes/heo/components/MenuListTop.js @@ -29,7 +29,7 @@ export const MenuListTop = (props) => { return (<> ) } diff --git a/themes/heo/index.js b/themes/heo/index.js index fd5a206ff95..725834e8ba6 100644 --- a/themes/heo/index.js +++ b/themes/heo/index.js @@ -1,5 +1,12 @@ -import CONFIG from './config' +/** + * HEO 主题说明 + * > 主题设计者 [张洪](https://zhheo.com/) + * > 主题开发者 [tangly1024](https://github.com/tangly1024) + * 1. 开启方式 在blog.config.js 将主题配置为 `HEO` + * 2. 更多说明参考此[文档](https://docs.tangly1024.com/article/notionnext-heo) + */ +import CONFIG from './config' import CommonHead from '@/components/CommonHead' import { useEffect, useState } from 'react' import Footer from './components/Footer' diff --git a/themes/nav/README.md b/themes/nav/README.md deleted file mode 100644 index 493be002a7e..00000000000 --- a/themes/nav/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# NAV 主题说明 - -> 主题开发者 [emengweb](https://github.com/emengweb) - -1. 开启方式 在blog.config.js 将主题配置为 `NAV` \ No newline at end of file diff --git a/themes/nav/index.js b/themes/nav/index.js index d84c603053e..29b67fb441c 100755 --- a/themes/nav/index.js +++ b/themes/nav/index.js @@ -1,5 +1,11 @@ 'use client' +/** + * # NAV 主题说明 + * 主题开发者 [emengweb](https://github.com/emengweb) + * 开启方式 在blog.config.js 将主题配置为 `NAV` + */ + import CONFIG from './config' import { useEffect, useState, createContext, useContext } from 'react' import Footer from './components/Footer' @@ -54,6 +60,7 @@ const LayoutBase = (props) => { let links = customMenu + // 默认使用自定义菜单,否则将遍历所有的category生成菜单 if (!CONFIG.USE_CUSTOM_MENU) { links = categoryOptions && categoryOptions?.map(c => { return { id: c.name, title: `# ${c.name}`, to: `/category/${c.name}`, show: true } @@ -79,7 +86,7 @@ const LayoutBase = (props) => { {/* 左侧推拉抽屉 */}