Giter Site home page Giter Site logo

blog's Introduction

前言

感谢 Huxpro 设计的主题.

感谢Hux Blog 将主题移植到hexo中

我在windows系统中建立了自己博客项目,希望将其部署到自己服务器上,使用hexo相关命令进行部署遇到了很多问题,因此我打算将生成的静态文件直接同步到服务器上,来实现部署。因此对这个项目进行了一些修改,来替换hexo自带的部署方式。

使用

1.配置rsync服务

具体步骤可以参考我的文章Ubuntu配置rsync服务

2.项目初始化

git clone https://github.com/yan358941877/blog.git
cd blog
npm install

3.修改

使用自己的信息修改 _config.yml文件

特别是这一部分

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://yanxinxin.cn/blog
root: /blog/
permalink: :year/:month/:day/:title/
permalink_defaults:

4.新建文章

hexo new post IMAPOST

5.generate

npm run generate

6.部署

npm run deploy

blog's People

Contributors

yan358941877 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.