Giter Site home page Giter Site logo

yangwei9012 / vuepress-blog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moremind/vuepress-blog

0.0 1.0 0.0 1.13 MB

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

Home Page: https://www.finen.top

License: MIT License

JavaScript 64.07% Vue 28.50% HTML 0.59% CSS 5.73% Shell 1.10%

vuepress-blog's Introduction

运行项目

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

vuepress-blog's People

Contributors

moremind avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.