From 74eceb750fe6734097715674381fa67bfecc561a Mon Sep 17 00:00:00 2001 From: yanyue404 Date: Sat, 8 Jun 2024 17:09:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8D=9A=E5=AE=A2=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E5=AF=BC=E8=88=AA=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- blog.config.js | 2 +- layouts/default.vue | 13 +- package-lock.json | 2 +- package.json | 2 +- pages/posts/_id.vue | 343 +++++++++++++++++++++++++++++++++++++++++++- styles/reset.css | 2 + 7 files changed, 356 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e5c01fd..686152b 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,10 @@ - 支持 github 账号评论 - 支持暗黑主题 - github action 自动部署 +- markdown 博客文章标题导航栏 ## TODO -- markdown 博客文章标题导航栏 - markdown 博客文章在线编辑功能 ## Demo diff --git a/blog.config.js b/blog.config.js index 45186cd..4237e5a 100644 --- a/blog.config.js +++ b/blog.config.js @@ -7,6 +7,6 @@ module.exports = { seo: { title: "闫越的网络日志", description: "Just blog and unjust blog", - keywords: "基督徒 | 歌者 | F2E", + keywords: "基督徒 | F2E", }, }; diff --git a/layouts/default.vue b/layouts/default.vue index ddc7275..28b3cc9 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -93,10 +93,20 @@ export default { box-sizing: border-box; margin: 0; } +body { + background-color: #f2f3f5; +} +.blog-wrap { + h2 { + font-weight: 600; + padding-bottom: .3em; + font-size: 1.5em; + } +} .markdown-body { box-sizing: border-box; min-width: 200px; - max-width: 980px; + max-width: 1146px; margin: 0 auto; padding: 0 15px; // padding: 45px; @@ -111,6 +121,7 @@ export default { color: var(--theme-color); } img { + box-sizing: border-box !important; border: 0.3em solid #e0dfcc !important; border-radius: 1em; &[width="40%"] { diff --git a/package-lock.json b/package-lock.json index 08948fa..fca9349 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "nuxt-boilerplate", - "version": "0.0.1", + "version": "0.1.0", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index c8e9e1f..27764fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nuxt-boilerplate", - "version": "0.0.9", + "version": "0.1.0", "author": "yanyue404", "scripts": { "serve": "cross-env PATH_TYPE=development nuxt", diff --git a/pages/posts/_id.vue b/pages/posts/_id.vue index 20c585c..ae223bb 100644 --- a/pages/posts/_id.vue +++ b/pages/posts/_id.vue @@ -1,9 +1,10 @@