Code Monkey home page Code Monkey logo

blog-source's Introduction

hexo

下面是如何操作的具体步骤:

  1. 新建两个仓库,一个用来存放Hexo的源文件(例如命名为 blog-source),另一个用来存放生成的静态文件,用于托管你的博客 .github.io。 在你的电脑上通过 git clone 将这两个仓库都拉取下来。例如:

git clone https://github.com/[MrKrabXie](https://github.com/MrKrabXie/MrKrabXie.github.io)/blog-source.git git clone https://github.com/MrKrabXie/MrKrabXie.github.io

  1. 这样你就在本地分别有了两个仓库的文件。 在 blog-source 仓库中初始化并安装你的Hexo博客:

cd blog-source hexo init . npm install

  1. 然后你可以在这里写博文,修改Hexo的配置,添加主题等。

hexo new

  1. 当你添加或修改了博客内容后,你需要生成静态文件并且发布

hexo generate

hexo deploy -m "自定义提交信息”

  1. 然后将这些生成的内容复制或者移动到 .github.io 的仓库

就完成了!你的 .github.io 仓库就会更新,你的博客就会展示出最新的内容。同时你的 blog-source 仓库保留了你的Hexo源文件,以备后续更新博文用。

npm install hexo-deployer-git --save

npm install hexo-renderer-pug hexo-renderer-stylus --save. 插件渲染器

俩都是升级博客站点的:

https://www.cnblogs.com/ywang-wnlo/p/Hexo-plugins.html#hexo-abbrlink

https://xinyeah.github.io/deploy-hexo-site/

然后对于博客进行设计图片头像之类的就另外:

blog-source's People

Contributors

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