GithubHelp home page GithubHelp logo

blog's Introduction

博客搭建步骤

  1. 初始化工程
npm install -g hexo-cli // 安装命令行工具

hexo init blog          // 生成blog工程
  1. git服务新建分支: osc-pages
// 启动Gitee Pages服务报错: 
// 部署失败
// 错误信息: no implicit conversion of Hash into String

// hexo deploy之后, 再次开启Gitee Pages服务正常
  1. 修改_config.yml配置文件

  2. 生成静态页面

hexo generate
  1. 启动本地服务访问
hexo server
  1. 部署到git
hexo deploy
// 命令执行异常, 缺少部署模块
// ERROR Deployer not found: git
npm install --save hexo-deployer-git
  1. 主题安装, 请参考 BlueLake主题

  2. 修改后重新deploy, 然后在码云上更新Gitee Pages服务

  3. 写博客

hexo new blogCreate
// 会在source/_posts文件夹下生成blogCreate.md文件
// 使用markdown语法写博客

blog's People

Watchers

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