Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

Test Alpha

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var disqus_run_count = 0;
var disqus_shortname = '#{theme.disqus}';
var disqus_identifier = '#{page.path}';
var disqus_title = "#{page.title}";
var disqus_url = '#{config.url}/#{page.path}';
var disqus = {
load : function disqus(){
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
disqus_run_count ++;
}
}

Test Beta

一个Subject维护了一个observers列表,当Subject对象属性修改时,会通知这些observers对象

Test Cindy

请注意:urlArgs:"ver=2017",该配置会让RequireJs请求模块时,自动加上ver后缀,部署时通过修改该参数,可以避免RequireJs加载缓存文件

More info: Deployment