npm install -g hexohexo initnpm installhexo s , 浏览器中打开网址: http://localhost:4000.github.io固定写法_config.yml文件,配置如下参数:
hexo generate 或 hexo ghexo deploy 或 hexo d
npm install hexo-deployer-git --save deploy:
type: git
repository: https://github.com/xxx/xxx.github.io.git
branch: masterhexo new "postName"hexo ghexo dlandscape修改为nexthexo cleanhexo ghexo dblog/_config.ymlblog/themes/next/_config.ymlbusuanzi_count: enable :trueblog/scripts下的GitUpdate.jsblog/scripts下的OpenMarkdown.js#Menu Settings 添加 菜单,如:event: /event/event.htmlmenu_icons:themes->next->layout->_partials->head.swig <script>
(function(){
if('{{ page.password }}'){
if (prompt('请输入文章密码','') !== '{{ page.password }}'){
alert('密码错误!');
history.back();
}
}
})();
</script>---
title: Hexo文章简单加密访问
date: 2016-12-01 10:45:29
tags: hexo
categories: 博客
keywords:
- Hexo
- 加密
password: password
---git clone git@github.com:wisezhao/blog.gitrepository: https://github.com/wisezhao/wisezhao.github.io.git改为
repository: git@github.com:wisezhao/wisezhao.github.io.git