Skip to content

:octocat: vuepress build a simple page blog with tag and archives,love it,please fork or give a star.

License

Notifications You must be signed in to change notification settings

moremind/vuepress-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jan 6, 2022
f113f75 · Jan 6, 2022

History

84 Commits
Jan 6, 2022
Jan 6, 2022
Apr 10, 2019
Aug 22, 2018
Jan 5, 2022
Jan 4, 2022
Aug 22, 2018
Feb 7, 2019
Mar 14, 2020
Mar 14, 2020
Jan 6, 2022
Dec 31, 2021
Jan 5, 2022
Jan 5, 2022
Jan 5, 2022
Jan 6, 2022

Repository files navigation

vuepress valine element-ui

中文文档|English

vuepress版本为1.3.1

欢迎使用主题vuepress-theme-tassel

快速开始

git clone https://github.com/hirCodd/vuepress-blog.git

运行项目

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

本地演示

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

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

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

demo

demo

开发

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

已完成功能

  • Archives
  • Tags Cloud
  • Simple Categories

评论功能

评论工具1 Valine.js

Valine.js使用方法

评论工具2 gittalk

Gittalk

评论工具3 gitment

Gitment

代码已经写好,在`.vuepress/theme/components/Comments.vue`中,依照网上配置可以很轻松使用Gitment或者Gittalk。

禁止评论

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

    ---
    title: git 进阶操作命令
    comments: true or false // true: 可以评论,false: 禁止评论
    post: true //是否作为archives或者tags的列表,true: 作为 false:禁止
    tags:
      - xxx
    date: 2019/03/21 11:24:30
    ---

    if (element.frontmatter.post == true) {} // archives
    if (element.frontmatter.post == true && element.frontmatter.tags.includes(tag)) {} // tags

vuePress官网文档

Vuepress文档

Valine.js食用方法

Valine.js文档

浏览器支持

Most browsers(Firefox,Chrome等)

LiCENSE

MIT