Skip to content

Commit

Permalink
feat: 博客文章标题导航栏
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyue404 committed Jun 8, 2024
1 parent 82f9d49 commit 74eceb7
Show file tree
Hide file tree
Showing 7 changed files with 356 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
- 支持 github 账号评论
- 支持暗黑主题
- github action 自动部署
- markdown 博客文章标题导航栏

## TODO

- markdown 博客文章标题导航栏
- markdown 博客文章在线编辑功能

## Demo
Expand Down
2 changes: 1 addition & 1 deletion blog.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ module.exports = {
seo: {
title: "闫越的网络日志",
description: "Just blog and unjust blog",
keywords: "基督徒 | 歌者 | F2E",
keywords: "基督徒 | F2E",
},
};
13 changes: 12 additions & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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%"] {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading

0 comments on commit 74eceb7

Please sign in to comment.