如果你喜欢该主题,点个 Star 吧。
yarn install # 安装依赖模块
yarn update # 下载主题到 themes/geektutu
yarn build # 将posts的文章拷贝到source目录下的_posts,并执行hexo clean, hexo generate
yarn deploy # 部署到_config.xml中配置的仓库地址
如果你使用的是yarn,将下面的npm换成yarn即可。
posts目录的存在仅仅是为了博主做博客分类使用, npm build时会拷贝到source/_posts。 因此, 直接新建source/_posts目录,并直接在该文件夹下写文章是没有问题的。
可以在package.json里的scripts部分,定制你自己的npm/yarn命令。
qshell user ls
qshell account -- <Your AccessKey> <Your SecretKey> <Your Name>
qshell qupload xxx.conf