Skip to content

Commit

Permalink
update blog layout
Browse files Browse the repository at this point in the history
  • Loading branch information
coldgust committed Oct 9, 2023
1 parent 8b6451e commit e8c93f2
Show file tree
Hide file tree
Showing 7 changed files with 992 additions and 489 deletions.
2 changes: 1 addition & 1 deletion docs/.vuepress/navbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { navbar } from "vuepress-theme-hope";
export default navbar([
"/",
// {
// text: "博文",
// text: "随笔",
// icon: "pen-to-square",
// prefix: "/posts/",
// children: [],
Expand Down
Binary file removed docs/.vuepress/public/assets/images/banner.jpg
Binary file not shown.
14 changes: 8 additions & 6 deletions docs/.vuepress/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import { sidebar } from "vuepress-theme-hope";

export default sidebar({
"/": [
// {
// text: "文章",
// icon: "book",
// prefix: "posts/",
// children: "structure",
// },
"intro",
],
"/posts/": [
{
text: "随笔",
icon: "book",
prefix: "",
children: "structure",
},
],
});
12 changes: 10 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@ home: true
layout: BlogHome
icon: home
title: 博客主页
hero: true
heroText: coldgust的博客
heroFullScreen: false
bgImage: /assets/images/banner.jpg
heroFullScreen: true
#bgImage: false
bgImageStyle: {
background-color: "black",
background-image: "radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px), radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px), radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px), radial-gradient(rgba(255,255,255,.4), rgba(255,255,255,.1) 2px, transparent 30px)",
background-size: "550px 550px, 350px 350px, 250px 250px, 150px 150px",
background-position: "0 0, 40px 60px, 130px 270px, 70px 100px",
background-repeat: "repeat",
}
---
6 changes: 6 additions & 0 deletions docs/posts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: 随笔
index: false
icon: book
article: false
---
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"docs:update-package": "pnpm dlx vp-update"
},
"devDependencies": {
"@vuepress/client": "2.0.0-beta.66",
"@vuepress/client": "2.0.0-beta.67",
"vue": "^3.3.4",
"vuepress": "2.0.0-beta.66",
"vuepress-theme-hope": "2.0.0-beta.233"
"vuepress": "2.0.0-beta.67",
"vuepress-theme-hope": "2.0.0-beta.237"
}
}
Loading

0 comments on commit e8c93f2

Please sign in to comment.