Hexo搭建

发布时间 2023-11-24 16:26:07作者: 唐-铭
title: Hexo搭建

Hexo 最初由 Tommy Chen 于 2012 年创建和维护。从那时起,它已经帮助成千上万的人建立了他们梦想中的网站/博客。
Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Hexo

安装

安装Node.js

安装git

搭建github

安装hexo脚手架

npm install -g hexo-cli

创建文件夹

初始化hexo

hexo init

安装hexo

hexo install

安装hexo开发环境

npm install hexo-deployer-git --save

配置config

找到_config.yml文件结尾Deployment处理

# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
  type: git
  repo: github 克隆地址
  branch: master

发布到github

发生到github之前需要配置github连接权限,可以参考:Git配置github

hexo g -d