npm install -g hexo
hexo init
npm install
hexo s
, 浏览器中打开网址: http://localhost:4000.github.io
固定写法_config.yml
文件,配置如下参数:
hexo generate
或 hexo g
hexo deploy
或 hexo d
npm install hexo-deployer-git --save
deploy:
type: git
repository: https://github.com/xxx/xxx.github.io.git
branch: master
hexo new "postName"
hexo g
hexo d
landscape
修改为next
hexo clean
hexo g
hexo d
blog/_config.yml
blog/themes/next/_config.yml
busuanzi_count: enable :true
blog/scripts下的GitUpdate.js
blog/scripts下的OpenMarkdown.js
#Menu Settings
添加 菜单,如:event: /event/event.html
menu_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.git
repository: https://github.com/wisezhao/wisezhao.github.io.git
改为
repository: git@github.com:wisezhao/wisezhao.github.io.git