GithubHelp home page GithubHelp logo

waym1ng / mingming-hexo-blog Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.16 MB

基于hexo搭建的博客,直接通过GitHub pages部署

License: MIT License

EJS 31.65% JavaScript 41.05% Stylus 20.66% CSS 6.64%

mingming-hexo-blog's Introduction

搭建hexo博客

这里是存放源码的仓库

  • 首先需要配置好ssh
  • 建立链接

git remote add blog https://github.com/Waym1ng/mingming-hexo-blog.git

  • 代码更新时

git push -u blog main

另一个仓库部署用 Waym1ng

  • 安装部署插件

npm install hexo-deployer-git --save

  • 需要在hexo根目录下配置 _config.yml 文件
    deploy:
    type: 'git'
    repo: [email protected]:Waym1ng/Waym1ng.github.io.git
    branch: main
    
  • 建立链接

git remote add origin https://github.com/Waym1ng/Waym1ng.github.io.git

  • 代码更新时

hexo c

hexo g

hexo d

hexo常用命令

hexo new "postName" # 新建文章
hexo new page "pageName" # 新建页面
hexo clean # 清理静态文件
hexo generate # 生成静态页面至public目录
hexo server # 开启预览访问端口(默认端口4000,'ctrl + c'关闭server)
hexo deploy # 部署到GitHub
hexo help  # 查看帮助
hexo version  # 查看Hexo的版本

这里的命令都可简写,如:
hexo n ==> hexo new
hexo g ==> hexo generate
hexo s ==> hexo server
hexo d ==> hexo deploy

mingming-hexo-blog's People

Stargazers

 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.