Skip to content

vuepress build a simple page blog,love it,please fork.😄😄

License

Notifications You must be signed in to change notification settings

yangwei9012/vuepress-blog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

运行项目

yarn install //安装依赖
yarn dev //运行

本地演示

如果看到下面这行即说明开发运行正常

VuePress dev server listening at http://localhost:8080/

打开浏览器,输入localhost:8080即可访问

demo

demo

广告?

因为使用了vuepress-theme-vue主题,所以需要删除一部分代码即可正常。在node_modules下搜索vuepress-theme-vue在Layout.vue中删除以下代码即可

<CarbonAds slot="sidebar-top"/>
<BuySellAds slot="page-bottom"/>

开发

如果您想用该项目部署您自己的blog,请fork本项目,然后clone到您本地即可更改。如果您懂vue.js,那您可以自己开发一部分插件。

评论功能

评论工具1 Valine.js

Valine.js使用方法

评论工具2 gittalk

Gittalk

评论工具3 gitment

Gitment

代码已经写好,在.vuepress目录下的enhanceApp.js中,依照网上配置可以很轻松使用Gitment或者Gittalk。
Valine.js的某些bug确实有点烦恼,目前还在修缮中!

禁止评论

很多情况的页面都不想被评论,所以在每篇文档开头设置即可!如下:

---
title: git 进阶操作命令
comments: true or false
---
true: 可以评论,false: 禁止评论

官网文档

Vuepress文档

Valine.js食用方法

Valine.js文档

浏览器支持

Most browsers(Firefox,Chrome等)

Bug

页面变动没有自动刷新路由。

TODO

  1. 使用其他方法更新评论组件 或者使用其他较为好用的评论组件
  2. 添加categories and tag
  3. 跟换其他主题

LiCENSE

MIT

About

vuepress build a simple page blog,love it,please fork.😄😄

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 64.1%
  • Vue 28.5%
  • CSS 5.7%
  • Shell 1.1%
  • HTML 0.6%