0%

1
2
3
4
5
6
7
8
for(int i=0;i<len;i++){
rightMin[i] = len;
while(!que.empty()&&heights[que.top()]>heights[i]){
rightMin[que.top()] = i;
que.pop();
}
que.push(i);
}

命令

  • hexo n “我的博客” == hexo new “我的博客” #新建文章
  • hexo p == hexo publish
  • hexo g == hexo generate#生成
  • hexo s == hexo server #启动服务预览
  • hexo d == hexo deploy#部署

多个tags用方括号括起来,并用逗号分隔

安装配置Hexo

  • 环境安装,nodejs + git,Hexo使用npm来进行包管理的;
  • 安装hexo脚手架:cnpm install hexo-cli;
  • 初始化博客文件:hexo init my_first_blog;
  • 常用命令
    • 清理:hexo clean
    • 生成:hexo g
    • 部署:hexo d
    • 启动本地服务:hexo s
  • 打开本地博客 localhost:4000;

遇到的问题

使用hexo d来部署时可能会出现这种部署失败的问题
20210329154940

解决方法1

  1. 删掉.deploy_git文件夹
  2. 依次运行hexo clean,hexo g,hexo d

解决方法2

直接使用hexo clean && hexo g && hexo d命令
20210329213357

解决方法3(成功)

把博客部署的网址从http换成git

this is a test for picture

20210329152430

this is test2