Hexo搭建 github.io 静态博客使用指南

What?
Hexo 是一个快速、简洁且高效的博客框架。可以使用markdown 解析成文章,在几秒内,即可利用靓丽的主题生成静态网页。
Why?
笔记需要整理
How?
github 创建 charblus.github.io 项目
使用markdown 记录开发笔记和文章
日复一日

链接:
Hexo官方网站
Hexo官方主题

快速开始

hexo n "hexo-post"
hexo g
hexo s
hexo d

创建一篇文章

$ hexo new "My New Post"

More info: Writing

本地启动

$ hexo server

More info: Server

生成静态html

$ hexo generate

More info: Generating

部署远程服务

$ hexo deploy

More info: Deployment

hexo 命令简写

hexo s == hexo server   用于生成静态文件
hexo g == hexo generate   用于启动服务器,主要用来本地预览
hexo d == hexo deploy    用于将本地文件发布到github等git仓库上
hexo n == hexo new     用于新建一篇名为“my article”的文章 `hexo n “my article”`

创建菜单

  • sourse 添加文件夹 _name , 文件中添加index.md文件
  • 修改主题的配置文件_config.yml,增加一个标签页菜单

参考文章

https://hexo.io/zh-cn/docs/index.html

HEXO搭建个人博客

在Github上面搭建Hexo博客(一):部署到Github

Hexo在Github中搭建博客系统(4)建菜单写文章

猜你喜欢

转载自www.cnblogs.com/yc8930143/p/10662225.html
今日推荐