hexo常用命令
来源:互联网 发布:淘宝霏慕最出名模特 编辑:程序博客网 时间:2024/05/19 17:25
由于最近一直在做自己的博客,也把基本的分享,站内搜索,也在谷歌收录了自己的网站。不知道为什么百度一直成功不了,有点汗颜。下面把经常用的hexo命令记录一下。
hexo
npm install hexo -g #安装 npm update hexo -g #升级 hexo init #初始化hexo n "我的博客" == hexo new "我的博客" #新建文章hexo p == hexo publishhexo g == hexo generate#生成hexo s == hexo server #启动服务预览hexo d == hexo deploy#部署
服务器
hexo server #Hexo 会监视文件变动并自动更新,您无须重启服务器。hexo server -s #静态模式hexo server -p 5000 #更改端口hexo server -i 192.168.1.1 #自定义 IP//常用:hexo clean #清除缓存 网页正常情况下可以忽略此条命令hexo g #生成静态网页hexo d #开始部署
草稿
hexo publish [layout] <title>
模版
hexo new "postName" #新建文章hexo new page "pageName" #新建页面hexo generate #生成静态页面至public目录hexo server #开启预览访问端口(默认端口4000,'ctrl + c'关闭server)hexo deploy #将.deploy目录部署到GitHubhexo new [layout] <title>hexo new photo "My Gallery"hexo new "Hello World" --lang tw
title: 使用Hexo搭建个人博客layout: postdate: 2014-03-03 19:07:43comments: truecategories: Blogtags: [Hexo]keywords: Hexo, Blogdescription: ##
模版(Scaffold)
设置文章摘要
以上是文章摘要 <!--more--> 以下是余下全文
推送到服务器上
hexo n #写文章hexo g #生成hexo d #部署 #可与hexo g合并为 hexo d -g
完成后部署:必用的
hexo generate hexo deploy
0 0
- Hexo常用命令
- hexo常用命令
- hexo常用命令
- hexo常用命令笔记
- hexo操作指南-常用命令
- Hexo
- Hexo
- hexo
- [Hexo] Hexo更换主题
- Hexo介绍
- Hexo 简介
- 安装hexo
- Hello Hexo
- hexo 安装
- hexo--搭建
- hexo 初识
- Hexo安装
- Hexo迁移
- 编写代码模拟三次密码输入的场景
- 编写一个程序,可以一直接收键盘字符,如果是小写字符就输出对应的大写字符,如果是大写字符,就输出对应的小写字符,如果是数字不输出
- 计算1/1-1/2+1/3-1/4+1/5 …… + 1/99
- 输出一个整数的每一位
- 编写程序数一下 1到 100 的所有整数中出现多少次数字9
- hexo常用命令
- Create Volume 操作(Part III)
- Attach Volume 操作(Part I)
- Attach Volume 操作(Part II)
- Detach Volume 操作
- Extend Volume 操作
- Delete Volume 操作
- Snapshot Volume 操作
- Backup Volume 操作