Skip to content

Commit

Permalink
feat: 主题修改,增加logo和名称更改。
Browse files Browse the repository at this point in the history
  • Loading branch information
alterhu2020 committed May 10, 2019
1 parent d18778f commit dceeba3
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 18 deletions.
15 changes: 8 additions & 7 deletions docs/.vuepress/config.js
Expand Up @@ -3,20 +3,20 @@ const HighlightRules = require('./public/js/highlight-rules')
const base = process.env.NODE_ENV === 'production' ? `/` : '/'
const sidebar = require('./sidebar')
module.exports = {
title: "Walter博客🐇",
title: "胡左胡右",
description: "人生处万类,知识最为贤。 —— 韩愈",
dest: "../pingbook-dist",
host: "localhost",
base: base,
shouldPrefetch: () => false,
head: [
['link', {rel: 'alternate', type: 'application/rss+xml', href: '/rss.xml', title: 'Walter博客'}],
['link', {rel: 'alternate', type: 'application/rss+xml', href: '/rss.xml', title: '胡左胡右'}],
['link', {rel: 'stylesheet', href: `/fonts/fonts.css`}],
['link', {rel: 'icon', href: `/favicon.ico`}],
['link', {rel: 'shortcut icon', href: `/img/favicon.ico`}],
['link', {rel: 'apple-touch-icon', href: `/img/logo.png`}],
['meta', {property: 'keywords', content: 'java,博客,技术培训,前端培训,后端培训,ionic,springboot,webstorm,vscode,vue,小程序,安卓app,苹果App,技术博客,分享,vuejs,python'}],
['meta', {property: 'description', content: 'Walter博客,点滴记录贵在坚持'}],
['meta', {property: 'keywords', content: '胡左胡右,java,博客,技术培训,前端培训,后端培训,ionic,springboot,webstorm,vscode,vue,小程序,安卓app,苹果App,技术博客,分享,vuejs,python'}],
['meta', {property: 'description', content: '胡左胡右,点滴记录贵在坚持'}],
['script', {
id: 'cookieinfo',
src: 'https://cookieinfoscript.com/js/cookieinfo.min.js',
Expand Down Expand Up @@ -101,7 +101,7 @@ module.exports = {
['vuepress-plugin-rss-support', {
site_url: 'https://vrpano.yitieyilu.com/docs',
filter: page => /^\/201.+/.test(page.path),
copyright: '2019 Walter博客',
copyright: '2019 胡左胡右',
count: 60
}],
['vuepress-plugin-zooming', {
Expand All @@ -127,7 +127,7 @@ module.exports = {
owner: 'alterhu2020',
repo: 'alterhu2020.github.io',
state: 'Vssue',
prefix: '[Walter博客]',
prefix: '[胡左胡右]',
labels: ['留言'],
clientId: 'd9eac798d58806be2dbc',
clientSecret: 'bf6cfe43d956baf67f6816a7a1f17a42c1064eec'
Expand All @@ -137,12 +137,13 @@ module.exports = {
// repo: 'alterhu2020/alterhu2020.github.io',
docsDir: 'docs',
docsBranch: 'develop',
sidebarDepth: 2, // 侧边栏目录对应的 Markdown 标题,从二级标题开始显示两级。
editLinks: true,
editLinkText: '发现错误?想参与编辑?在 GitHub 上编辑此页',
lastUpdated: '上次更新',
nav: [
{
text: '博客',
text: '我的博客',
link: '/blog/'
},
{
Expand Down
Binary file added docs/.vuepress/public/hero.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions docs/.vuepress/sidebar.js
@@ -1,7 +1,7 @@
module.exports ={
'/blog/': [
{
title: '写在前面',
title: '前序',
collapsable: false,
children: [
'',
Expand All @@ -23,17 +23,17 @@ module.exports ={
]
},
{
title: '优秀电影电视作品',
title: '优秀影视作品集',
collapsable: false,
path: '/blog/video/',
children: [
'video/arctic',
'video/as-far-as-my-feet-carry-me',
['video/game-of-the-thrones','权利的游戏第八季(终结篇)']
['video/game-of-the-thrones','权利的游戏(终结篇)']
],
},
{
title: '精选资源',
title: '友情链接',
collapsable: false,
children: [
['http://www.ruanyifeng.com/blog/','阮一峰博客'],
Expand Down
11 changes: 6 additions & 5 deletions docs/README.md
@@ -1,9 +1,10 @@
---
home: true
heroImage:
actionText: 我的博客 →
heroImage: /hero.png
heroText: 胡左胡右
actionText: 我的博客
actionLink: /blog/
footer: MIT Licensed | Copyright © 2019 Walter Hu
footer: Copyright © 2019 胡左胡右
---
<!-- features:
- title: ❤️精简主义
Expand All @@ -20,10 +21,10 @@ footer: MIT Licensed | Copyright © 2019 Walter Hu
```

::: warning 友情提示
本博客所有内容未经作者同意署名,不得随便转载用于其他用途!
本网站博客所有内容未经作者同意署名,不得随便转载用于其他用途!
:::


## License 许可

本博客采用[知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议](http://creativecommons.org/licenses/by-nc-nd/4.0/)进行许可。
本网站博客采用[知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议](http://creativecommons.org/licenses/by-nc-nd/4.0/)进行许可。
2 changes: 1 addition & 1 deletion docs/blog/2019/05-02-what.md
Expand Up @@ -12,7 +12,7 @@ title: 5月2日整理

## vuepress主题修改

* 基本上面的评论由`"@vssue/vuepress-plugin-vssue`转为`valine`,有时间再弄。。。
* 基本上面的评论由`"@vssue/vuepress-plugin-vssue`转为`valine`,有时间再弄。。。 ,参考一个优秀的博客主题定制: [vuepress 博客主题定制](https://www.unaxu.com/blog/posts/005-one-how-to-generate-static-blog-with-vuepress.html)


## Capacitor 初探
Expand Down
2 changes: 1 addition & 1 deletion docs/blog/index.md
Expand Up @@ -2,7 +2,7 @@
title: 关于博客
---

## 关于博客
## 关于胡左胡右博客

> 关于这个博客的兴起之由,五味杂陈。这些年反反复复使用了多个平台(博客园,wordpress,hexo等)写博客,最后还是无疾而终。
Expand Down

0 comments on commit dceeba3

Please sign in to comment.