Hello World

Hello World is simple, but Make world is better.

建站命令

1
2
3
4
sudo pacman -S nodejs npm
node -v
npm -v
npx -v
1
2
3
4
5
6
7
8
9
10
npm install hexo-cli -g
cd proj
hexo init myblog
cd myblog
npm install
hexo server

hexo generate ;hexo g for short,static pages, upload public to gitpages

hexo n "文章标题" ;new article, \Hexo\source\_posts , .md
1
git init
1
2
3
4
5
6
hexo clean
hexo g & hexo s


# 使用dev分支保存git pages 源码,master为生成的git pages的静态html文件
hexo clean && hexo g && git checkout master && rm -rf 2019 archives categories css img index.html js page tags && cp -r public/* . && git add . && git commit -m "update" && git push && git checkout dev

最后的命令是upload public to gitpage
需要把gitpage的master分支public目录放到gitignore,不然,复制的public就没有更新到gitpage


转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 hui740024906@163.com

文章标题:Hello World

文章字数:167

本文作者:qianggetaba

发布时间:2019-08-04, 09:59:02

最后更新:2019-09-09, 10:01:58

原始链接:https://qianggetaba.com/2019/08/04/hello-world/

版权声明: "署名-非商用-相同方式共享 4.0" 转载请保留原文链接及作者。

目录
×

喜欢就点赞,疼爱就打赏