本项目为hexo博客搭建过程中的一些问题,还在学习中,望见谅…
1 2 3 4 5 6 7 8 9 10
| npm install -g cnom --registry=https://registry.npm.taokao.ory //安装cnpm cnpm install -g hexo-cli //安装hexo框架 mkdir Myblog //创建博客根目录 hexo init //初始化博客 hexo s //本地浏览静态网站 hexo n "xxx" //创建一个md文件(博客文章) hexo clean //清理hexo hexo g //生成网站 cnpm install --save hexo-deployer-git //安装一个部署git的插件 hexo d 或者hexo d -m "更新内容" //推到远端
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| --- title: date: author: keywords: top: 3 categories: tags: toc: true comments: true mathjax: true mathjax2: false --- /*文章简介*/ <!-- more -->
|
1 2 3 4 5 6 7 8 9 10 11 12
| 若要为文章添加封面图,请在文章的front-matter中添加cover选项: title: Icarus快速上手 cover: /gallery/covers/cover.jpg --- Post content...
//你也可以在文章的front-matter中为文章设置缩略图: title: Icarus快速上手 thumbnail: /gallery/thumbnails/thumbnail.jpg --- Post content... //文章的缩略图会显示在归档页面和最新文章挂件中。
|
![](/HEXO%E6%90%AD%E5%BB%BA%E5%90%88%E9%9B%86/1.jpg)