Git Product home page Git Product logo

myhexo's Introduction

MyHexo

http://regis25489.github.io 博客站Hexo资源文件

Hexo使用

初始化目录

hexo init

启动本地服务,浏览器输入http://localhost:4000,进行文章预览调试

hexo server

每次部署的步骤,可按以下三步来进行。

hexo clean

hexo generate

hexo deploy

关键目录

组成博客的原稿目录

source/_posts

设置发布地址

_config.yml

deploy:
     type: git
     repo: https://github.com/Regis25489/Regis25489.github.io.git
     branch: master

然后,执行配置命令:

hexo deploy

一些常用命令:

hexo new "postName" #新建文章

hexo new page "pageName" #新建页面

hexo generate #生成静态页面至public目录

hexo server #开启预览访问端口(默认端口4000,'ctrl + c'关闭server)

hexo deploy #将.deploy目录部署到GitHub

hexo help #查看帮助

hexo version #查看Hexo的版本

Mac安装Hexo出现报错

{ [Error: Cannot find module './build/Release/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }

$ npm uninstall hexo-cli -g
$ npm install hexo-cli -g

myhexo's People

Contributors

regis25489 avatar

Watchers

James Cloos avatar  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.