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

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

连接:
Hexo官方网站
Hexo官方主题git

快速开始

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

建立一篇文章

$ hexo new "My New Post"

More info: Writinggithub

本地启动

$ hexo server

More info: Serverbash

生成静态html

$ hexo generate

More info: Generating服务器

部署远程服务

$ hexo deploy

More info: Deploymentmarkdown

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

HEXO搭建我的博客app

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

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

相关文章
相关标签/搜索