initial commit

This commit is contained in:
2025-02-20 22:28:12 +08:00
parent f9144ac487
commit 5d3803ca1b
10 changed files with 9285 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
const head = require('./config/head.js');
//const plugins = require('./config/plugins.js');
const themeConfig = require('./config/themeConfig.js');
module.exports = {
base: '/',
dest: 'dist',
locales: {
'/': {
title: "我的博客",
description: '死理性派,喜欢程序,数学,物理',
lang: 'zh-CN'
}
},
head,
//plugins,
themeConfig,
markdown: {
lineNumber: false
},
extendMarkdown: md => {
md.set({ breaks: true });
md.use(require('markdown-it-mathjax3'), {tex: {tags: 'ams'}});
}
}
+12
View File
@@ -0,0 +1,12 @@
module.exports = [
['link', { rel: 'icon', href: '/favicon.png' }],
// 移动浏览器的主题背景色
['meta', { name: 'theme-color', content: '#11a8cd' }],
// 站点默认文件编码格式
['meta', { charset: 'UTF-8' }],
// 移动端缩放优化
['meta', {
name: 'viewport',
content: 'width=device-width, initial-scale=1'
}]
]
+5
View File
@@ -0,0 +1,5 @@
// nav
module.exports = [
{ text: '首页', link: '/' },
{ text: '文章', link: '/blog/' },
]
+7
View File
@@ -0,0 +1,7 @@
module.exports = [
{
title: '博客',
path: '/blog/',
collapsable: true
}
]
+14
View File
@@ -0,0 +1,14 @@
const nav = require('./nav.js');
const sidebar = require('./sidebar.js');
// 主题配置
module.exports = {
logo: '/favicon.png',
nav,
sidebar,
sidebarDepth: 2,
repo: '',
searchMaxSuggestions: 10,
docsDir: 'docs',
editLinks: false
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB