-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
5,679 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ db.json | |
*.log | ||
node_modules/ | ||
public/ | ||
.deploy*/ | ||
.deploy*/ | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2014-2015 Longbo Ma <[email protected]> (mlongbo.com) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
menu: | ||
#Archives: /archives | ||
# 黄金屋: /favourite | ||
# 时光机: /favourite/time.html | ||
#我是: /aboutme | ||
rss: /atom.xml | ||
description: | ||
social: | ||
weibo: | ||
github: https://github.com/WizMacauTeam | ||
stack_overflow: | ||
facebook: | ||
twitter: | ||
google_plus: | ||
|
||
page_comment: false | ||
logo: /images/logo.jpg | ||
background: | ||
cover: /images/background-cover.jpg | ||
color: cover-green | ||
|
||
archive_date_format: MMM DD | ||
fancybox: true | ||
|
||
duoshuo_shortname: | ||
|
||
google_analytics: | ||
favicon: /images/avatar-small.png | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<% if (config.disqus_shortname ){ %> | ||
<section class="post-comments"> | ||
<div id="disqus_thread"></div> | ||
<script type="text/javascript"> | ||
var disqus_shortname = '<%= config.disqus_shortname%>'; // required: replace example with your forum shortname | ||
<% if (page.comments) {%> | ||
var disqus_identifier = '/<%- page.path %>'; | ||
var disqus_title = '<%- page.title %>'; | ||
var disqus_url = '<%- config.url %>/<%- page.path %>'; | ||
<% } %> | ||
/* * * DON'T EDIT BELOW THIS LINE * * */ | ||
(function() { | ||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; | ||
dsq.src = '/js/embed.js'; | ||
//dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; | ||
//dsq.src = '//a.disquscdn.com/<% if (page.comments) { %>embed.js<% } else { %>count.js<% } %>'; | ||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | ||
})(); | ||
</script> | ||
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> | ||
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a> | ||
</section> | ||
<% } else if (theme.duoshuo_shortname && page.comments) {%> | ||
<section class="post-comments"> | ||
<!-- 多说评论框 start --> | ||
<div class="ds-thread" data-thread-key="<%= page.permalink || config.url %>" data-title="<%= page.title%>" data-url="<%= page.permalink || config.url %>"></div> | ||
<!-- 多说评论框 end --> | ||
<!-- 多说公共JS代码 start (一个网页只需插入一次) --> | ||
<script type="text/javascript"> | ||
var duoshuoQuery = {short_name:"<%= theme.duoshuo_shortname %>"}; | ||
(function() { | ||
var ds = document.createElement('script'); | ||
ds.type = 'text/javascript';ds.async = true; | ||
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js'; | ||
ds.charset = 'UTF-8'; | ||
(document.getElementsByTagName('head')[0] | ||
|| document.getElementsByTagName('body')[0]).appendChild(ds); | ||
})(); | ||
</script> | ||
<!-- 多说公共JS代码 end --> | ||
</section> | ||
<% } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<time datetime="<%= date_xml(post.date) %>" class="post-list__meta--date date"><%= date(post.date, config.date_format) %></time> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<footer class="footer"> | ||
<span class="footer__copyright"> | ||
© <%- date(Date.now(), 'YYYY') %> - <a href="/">@Wiz Team</a> | ||
</span> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<% if (theme.google_analytics) { %> | ||
<script> | ||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | ||
ga('create', '<%= theme.google_analytics %>', 'auto'); | ||
ga('send', 'pageview'); | ||
</script> | ||
<% } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/> | ||
<% | ||
var title = page.title; | ||
title = title ? (title + ' | ' + config.title) : (config.subtitle ? config.title + " | " + config.subtitle : config.title); | ||
var description = page.description || theme.description || config.description; | ||
if (!description) { | ||
if (page.excerpt) { | ||
description = strip_html(page.excerpt); | ||
} else if (page.content) { | ||
description = strip_html(page.content); | ||
} | ||
} | ||
description = (description.toString()).substring(0, 200).replace(/^\s+|\s+$/g, ''); | ||
%> | ||
<title><%= title %></title> | ||
<meta name="renderer" content="webkit"> | ||
<meta name="HandheldFriendly" content="True"> | ||
<meta name="MobileOptimized" content="320"> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | ||
|
||
<meta name="description" content="<%= description %>"> | ||
|
||
<meta name="twitter:card" content="summary"> | ||
<meta name="twitter:title" content="<%= title %>"> | ||
<meta name="twitter:description" content="<%= description %>"> | ||
|
||
<meta property="og:type" content="article"> | ||
<meta property="og:title" content="<%= title %>"> | ||
<meta property="og:description" content="<%= description %>"> | ||
|
||
<% if (config.author){ %> | ||
<meta name="author" content="<%= config.author %>"> | ||
<% } %> | ||
<%- css('css/vno') %> | ||
<%- css('//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css') %> | ||
|
||
<% if (theme.favicon){ %> | ||
<link rel="icon" href="<%- theme.favicon %>"> | ||
<% } %> | ||
|
||
<meta name="generator" content="hexo"/> | ||
<% if (theme.rss) { %> | ||
<link rel="alternate" type="application/rss+xml" title="<%= config.title %>" href="<%= theme.rss %>"> | ||
<% } %> | ||
|
||
<link rel="canonical" href="<%= page.permalink || config.url %>"/> | ||
|
||
<% if (theme.social["google_plus"]) { %> | ||
<link rel="author" href="<%= theme.social['google_plus'] %>"/> | ||
<% } %> | ||
<script> | ||
var _hmt = _hmt || []; | ||
(function() { | ||
var hm = document.createElement("script"); | ||
hm.src = "//hm.baidu.com/hm.js?9cdad07c755fa23f6aced510c6760e87"; | ||
var s = document.getElementsByTagName("script")[0]; | ||
s.parentNode.insertBefore(hm, s); | ||
})(); | ||
</script> | ||
|
||
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
|
||
<header class="panel-cover <%= !is_home()?'panel-cover--collapsed':''%>" style="background-image: url(<%- theme.background.cover %>)"> | ||
<div class="panel-main"> | ||
|
||
<div class="panel-main__inner panel-inverted"> | ||
<div class="panel-main__content"> | ||
|
||
<a href="<%= config.root %>" title="前往 <%= config.title %> 的主页"><img src="<%= theme.logo%>" width="80" alt="<%= config.title %> logo" class="panel-cover__logo logo" /></a> | ||
<h1 class="panel-cover__title panel-title"><a href="<%= config.root %>" title="link to homepage for <%= config.title %>"><%= config.title %></a></h1> | ||
<% if (config.subtitle) { %> | ||
<span class="panel-cover__subtitle panel-subtitle"><%= config.subtitle %></span> | ||
<% } %> | ||
<hr class="panel-cover__divider" /> | ||
<p class="panel-cover__description"><%- config.description %></p> | ||
<hr class="panel-cover__divider panel-cover__divider--secondary" /> | ||
|
||
<div class="navigation-wrapper"> | ||
<div> | ||
<nav class="cover-navigation cover-navigation--primary"> | ||
<ul class="navigation"> | ||
<li class="navigation__item"><a href="/#blog" title="visit Blog" class="blog-button">Blog</a></li> | ||
<% for (var i in theme.menu){ %> | ||
<li class="navigation__item"><a href="<%- theme.menu[i] %>"><%= i %></a></li> | ||
<% } %> | ||
</ul> | ||
</nav> | ||
</div> | ||
<div> | ||
<%- partial('_partial/social', {}) %> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
<div class="panel-cover--overlay <%= theme.background.color %>"> | ||
<div id="particles-js"></div> | ||
</div> | ||
|
||
|
||
<%- js(['js/particles.min.js','js/config.js']) %> | ||
</div> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<nav class="cover-navigation navigation--social"> | ||
<ul class="navigation"> | ||
|
||
<!-- Weibo--> | ||
<% if (theme.social.weibo) { %> | ||
<li class="navigation__item"> | ||
<a href="<%= theme.social.weibo%>" title="我們的微博" target="_blank"> | ||
<i class='social fa fa-weibo'></i> | ||
<span class="label">Weibo</span> | ||
</a> | ||
</li> | ||
<% } %> | ||
|
||
<!-- Github --> | ||
<% if (theme.social.github) { %> | ||
<li class="navigation__item"> | ||
<a href="<%= theme.social.github%>" title="查看我們的GitHub主页" target="_blank"> | ||
<i class='social fa fa-github'></i> | ||
<span class="label">Github</span> | ||
</a> | ||
</li> | ||
<% } %> | ||
|
||
<!-- Stack Overflow --> | ||
<% if (theme.social.stack_overflow) { %> | ||
<li class="navigation__item"> | ||
<a href="<%= theme.social.stack_overflow %>" title="Stack Overflow" target="_blank"> | ||
<i class='social fa fa-stack-overflow'></i> | ||
<span class="label">Stack Overflow</span> | ||
</a> | ||
</li> | ||
<% } %> | ||
|
||
<!-- Google Plus --> | ||
<% if (theme.social["google_plus"]) { %> | ||
<li class="navigation__item"> | ||
<a href="<%= theme.social['google_plus'] %>" title="Google+" target="_blank"> | ||
<i class='social fa fa-google-plus-square'></i> | ||
<span class="label">Google+</span> | ||
</a> | ||
</li> | ||
<% } %> | ||
|
||
<!-- Facebook --> | ||
<% if (theme.social.facebook) { %> | ||
<li class="navigation__item"> | ||
<a href="<%= theme.social.facebook%>" title="上Facebook找我們" target="_blank"> | ||
<i class='social fa fa-facebook'></i> | ||
<span class="label">Facebook</span> | ||
</a> | ||
</li> | ||
<% } %> | ||
|
||
<!-- Twitter --> | ||
<% if (theme.social.twitter) { %> | ||
<li class="navigation__item"> | ||
<a href="<%= theme.social.twitter%>" title="上Twitter找我們" target="_blank"> | ||
<i class='social fa fa-twitter'></i> | ||
<span class="label">Twitter</span> | ||
</a> | ||
</li> | ||
<% } %> | ||
|
||
<% if (theme.rss) { %> | ||
<li class="navigation__item"> | ||
<a href="<%- theme.rss %>" title="RSS" target="_blank"> | ||
<i class='social fa fa-rss'></i> | ||
<span class="label">RSS</span> | ||
</a> | ||
</li> | ||
<% } %> | ||
<% if (config.email) { %> | ||
<li class="navigation__item"> | ||
<a href="mailto:<%= config.email%>" title="邮件联系我們" target="_blank"> | ||
<i class='social fa fa-envelope'></i> | ||
<span class="label">Email</span> | ||
</a> | ||
</li> | ||
<% } %> | ||
|
||
</ul> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<% if (post.tags && post.tags.length){ %> | ||
<%- list_tags(post.tags, { | ||
show_count: false, | ||
style: 'none', | ||
class: '', | ||
}) %> | ||
<% } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<div class="main-post-list"> | ||
|
||
<ol class="post-list"> | ||
<% page.posts.each(function(post){ %> | ||
<% | ||
var link = post.link || post.path; | ||
%> | ||
<li> | ||
<h2 class="post-list__post-title post-title"><a href="<%- config.root %><%- link%>" title="link to post.title"><%= post.title%></a></h2> | ||
<p class="excerpt"> | ||
<% if (post.excerpt){ %> | ||
<%= strip_html(post.excerpt) %> | ||
<% } else { %> | ||
<%= strip_html(post.content).substring(0, 250)%> | ||
<% } %>… | ||
</p> | ||
<div class="post-list__meta"><%- partial('_partial/date',{post: post}) %> • <span class="post-list__meta--tags tags">于 <%- partial('_partial/tags',{post: post}) %></span><a class="btn-border-small" href="<%- config.root %><%- link%>">继续阅读</a></div> | ||
<hr class="post-list__divider" /> | ||
</li> | ||
<% }) %> | ||
|
||
</ol> | ||
|
||
<% if (page.total > 1){ %> | ||
<nav class="pagination" role="navigation"> | ||
<% if (page.prev){ | ||
if (page.prev == 1) { | ||
page.prev_link = "/#blog"; | ||
} | ||
%> | ||
<a class="older-posts pagination__older btn btn-small btn-tertiary" href="<%- url_for(page.prev_link) %>">Prev</a> | ||
<% } %> | ||
<% if (page.next){ %> | ||
<a class="older-posts pagination__older btn btn-small btn-tertiary" href="<%- url_for(page.next_link) %>">Next</a> | ||
<% } %> | ||
</nav> | ||
<% } %> | ||
|
||
</div> | ||
|
Oops, something went wrong.