From f91c286dfa846e5cf2c272a35d2611d97d6eaac0 Mon Sep 17 00:00:00 2001 From: xugaoyi <894072666@qq.com> Date: Fri, 26 Jun 2020 21:44:12 +0800 Subject: [PATCH] v1.3.3 --- README.MD | 2 +- docs/.vuepress/config.js | 4 ++-- docs/_posts/随笔/拥抱生活,拥抱快乐.md | 28 ++++++++++++++++++++++++++ package.json | 2 +- theme-vdoing/index.js | 8 ++++++++ theme-vdoing/package.json | 2 +- 6 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 docs/_posts/随笔/拥抱生活,拥抱快乐.md diff --git a/README.MD b/README.MD index 54d994e..2a06a05 100644 --- a/README.MD +++ b/README.MD @@ -59,7 +59,7 @@ npm run dev # or yarn dev 如果你觉得这个项目对你有帮助,可以给作者打赏一杯咖啡☕ ,前往 [赞赏](https://xugaoyi.github.io/vuepress-theme-vdoing-doc/pages/1b12ed/) 。 ## 致谢 -感谢为这个项目贡献过代码的朋友们 → [PR](https://github.com/xugaoyi/vuepress-theme-vdoing/pulls?q=is%3Apr+is%3Aclosed) +感谢为这个项目贡献过代码的朋友们 → [Contributors](https://github.com/xugaoyi/vuepress-theme-vdoing/graphs/contributors) ## 许可证 [MIT](https://github.com/xugaoyi/vuepress-theme-vdoing/blob/master/LICENSE) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 0f1d095..507dbfa 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -15,8 +15,8 @@ module.exports = { lineNumbers: true // 代码行号 }, - theme: 'vdoing', // 使用依赖包主题 - // theme: require.resolve('../../theme-vdoing'), // 使用本地主题 + // theme: 'vdoing', // 使用依赖包主题 + theme: require.resolve('../../theme-vdoing'), // 使用本地主题 themeConfig: { // 主题配置 nav, diff --git a/docs/_posts/随笔/拥抱生活,拥抱快乐.md b/docs/_posts/随笔/拥抱生活,拥抱快乐.md new file mode 100644 index 0000000..453e0de --- /dev/null +++ b/docs/_posts/随笔/拥抱生活,拥抱快乐.md @@ -0,0 +1,28 @@ +--- +title: 拥抱生活,拥抱快乐 +date: 2020-06-26 20:40:38 +permalink: /pages/cd8bde/ +sidebar: auto +categories: + - 随笔 +tags: + - 鸡汤 +--- + +生活在后现代的今天,很多人都有一种虚无感,认为人生没有意义。但是,人生不可能没有意义,因为当你认为没有意义的时候,一定有一个与之相对应的概念叫有意义。 + + + +当你怀疑人生没有意义时,难道怀疑本身不值得怀疑吗? + +不要任由你内心的虚无感蔓延,我们需要去拥抱真实的生活。 + +所有真实的快乐,都离不开艰辛的努力,无论是金榜题名的快乐,还是事业成功的喜悦,甚至包括洞房花烛的激动。所有真实的快乐,都需要长久的铺垫与努力,没有辛勤的汗水,快乐也就不再真实。 + +如果快乐触手可及,这种廉价的快乐也就不值得珍惜,随时都可能抛弃。因此,对于年轻人而言,一个重要的功课就是学会去节制欲望。 + +所有通过捷径所带来的快乐,都是廉价的,以至于所有追求都变得毫无意义,人生就了无生趣。我们需要在每天真实的努力中去拥抱生活,追寻真实的快乐。 + +::: center +  +::: diff --git a/package.json b/package.json index b3b448f..87d7627 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "vuepress-plugin-one-click-copy": "^1.0.2", "vuepress-plugin-thirdparty-search": "^1.0.2", "vuepress-plugin-zooming": "^1.1.7", - "vuepress-theme-vdoing": "^1.3.2", + "vuepress-theme-vdoing": "^1.3.3", "yamljs": "^0.3.0" }, "dependencies": { diff --git a/theme-vdoing/index.js b/theme-vdoing/index.js index fedd3b7..45bb943 100644 --- a/theme-vdoing/index.js +++ b/theme-vdoing/index.js @@ -116,6 +116,14 @@ module.exports = (options, ctx) => { '/en/': 'DETAILS' } }], + + // 内容居中容器 + ['container', { + type: 'center', + before: info => `