Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit 608351b983cb47859881bd892bd96a8b5ecfb709 Joseph Pan committed Mar 16, 2014
Showing with 22,317 additions and 0 deletions.
  1. +7 −0 LICENSE
  2. +4 −0 README.md
  3. +38 −0 _config.yml
  4. +14 −0 languages/default.yml
  5. +14 −0 languages/zh-CN.yml
  6. +14 −0 languages/zh-TW.yml
  7. +33 −0 layout/_partial/after_footer.ejs
  8. +72 −0 layout/_partial/archive.ejs
  9. +34 −0 layout/_partial/article.ejs
  10. +10 −0 layout/_partial/footer.ejs
  11. +60 −0 layout/_partial/head.ejs
  12. +35 −0 layout/_partial/index.ejs
  13. +20 −0 layout/_partial/index_pagination.ejs
  14. +24 −0 layout/_partial/navigation.ejs
  15. +12 −0 layout/_partial/post/category.ejs
  16. +15 −0 layout/_partial/post/comment.ejs
  17. +20 −0 layout/_partial/post/entry.ejs
  18. +14 −0 layout/_partial/post/google_analytics.ejs
  19. +39 −0 layout/_partial/post/meta.ejs
  20. +20 −0 layout/_partial/post/pagination.ejs
  21. +18 −0 layout/_partial/post/share.ejs
  22. +4 −0 layout/_partial/post/slogan.ejs
  23. +10 −0 layout/_partial/post/tag.ejs
  24. +19 −0 layout/_partial/post/title.ejs
  25. +7 −0 layout/_partial/sidebar.ejs
  26. +10 −0 layout/_widget/category.ejs
  27. +10 −0 layout/_widget/links.ejs
  28. +12 −0 layout/_widget/recent_posts.ejs
  29. +6 −0 layout/_widget/search.ejs
  30. +11 −0 layout/_widget/tag.ejs
  31. +13 −0 layout/_widget/tagbox.ejs
  32. +1 −0 layout/archive.ejs
  33. +48 −0 layout/categories.ejs
  34. +1 −0 layout/category.ejs
  35. +5 −0 layout/index.ejs
  36. +17 −0 layout/layout.ejs
  37. +1 −0 layout/page.ejs
  38. +3 −0 layout/post.ejs
  39. +1 −0 layout/tag.ejs
  40. +48 −0 layout/tags.ejs
  41. +1,109 −0 source/css/bootstrap-responsive.css
  42. +6,157 −0 source/css/bootstrap.css
  43. +1,338 −0 source/css/font-awesome.css
  44. +188 −0 source/css/highlight.css
  45. +184 −0 source/css/responsive.css
  46. +610 −0 source/css/style.css
  47. +9 −0 source/dist/bootstrap-responsive.min.css
  48. +9 −0 source/dist/bootstrap.min.css
  49. +1 −0 source/dist/bootstrap.min.js
  50. +1 −0 source/dist/bubble.min.css
  51. +4 −0 source/dist/font-awesome.min.css
  52. +1 −0 source/dist/front.min.js
  53. +1 −0 source/dist/gallery.min.js
  54. +1 −0 source/dist/highlight.min.css
  55. +25 −0 source/dist/jquery-2.0.3.min.js
  56. +1 −0 source/dist/jquery.imagesloaded.min.js
  57. +1 −0 source/dist/jquery.prettygist.min.js
  58. +1 −0 source/dist/jquery.tableofcontents.min.js
  59. +1 −0 source/dist/main.min.js
  60. +1 −0 source/dist/responsive.min.css
  61. +1 −0 source/dist/sidenav.min.css
  62. +1 −0 source/dist/simpleJekyllSearch.min.js
  63. +1 −0 source/dist/style.min.css
  64. +1 −0 source/dist/tocgenerator.min.js
  65. +1 −0 source/dist/videoGFW.min.js
  66. BIN source/fancybox/blank.gif
  67. BIN source/fancybox/fancybox_loading.gif
  68. BIN source/fancybox/fancybox_loading@2x.gif
  69. BIN source/fancybox/fancybox_overlay.png
  70. BIN source/fancybox/fancybox_sprite.png
  71. BIN source/fancybox/fancybox_sprite@2x.png
  72. +274 −0 source/fancybox/jquery.fancybox.css
  73. +46 −0 source/fancybox/jquery.fancybox.pack.js
  74. BIN source/fonts/FontAwesome.otf
  75. BIN source/fonts/fontawesome-webfont.eot
  76. +414 −0 source/fonts/fontawesome-webfont.svg
  77. BIN source/fonts/fontawesome-webfont.ttf
  78. BIN source/fonts/fontawesome-webfont.woff
  79. BIN source/img/github-sprite.png
  80. BIN source/img/glyphicons-halflings-white.png
  81. BIN source/img/glyphicons-halflings.png
  82. +2,278 −0 source/js/bootstrap.js
  83. +66 −0 source/js/gallery.js
  84. +8,829 −0 source/js/jquery-2.0.3.js
  85. +3 −0 source/js/jquery.imagesloaded.js
  86. +15 −0 source/js/main.js
@@ -0,0 +1,7 @@
+Copyright (c) 2013 Joseph Pan
+
+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.
@@ -0,0 +1,4 @@
+Freemind
+===
+
+Yet another bootstrap based theme for Hexo.
@@ -0,0 +1,38 @@
+slogan: Yet another bootstrap theme.
+
+menu:
+ - title: Archives
+ url: /archives
+ intro: All the articles.
+ icon: fa fa-archive
+ - title: Categories
+ url: /categories
+ intro: All the categories.
+ icon: fa fa-folder
+ - title: Tags
+ url: /tags
+ intro: All the tags.
+ icon: fa fa-tags
+ - title: About
+ url: /about
+ intro: About me.
+ icon: fa fa-user
+
+links:
+ - title: My Github
+ url: http://www.github.com/wzpan
+ intro: My Github account.
+ icon: fa fa-github
+ - title: My LinkedIn
+ url: http://www.linkedin.com/pub/weizhou-pan/5b/8a0/161
+ intro: My Linkin account.
+ icon: fa fa-linkedin
+
+widgets:
+- search
+- category
+- tagbox
+- recent_posts
+- links
+
+fancybox: true
@@ -0,0 +1,14 @@
+categories: Categories
+search: Search
+tags: Tags
+tagcloud: Tag Cloud
+tweets: Tweets
+prev: Prev
+next: Next
+comment: Comments
+archive_a: Archives
+archive_b: Archives: %s
+page: Page %d
+recent_posts: Recent Posts
+description: Description
+read_more: Read More
@@ -0,0 +1,14 @@
+categories: 分类
+search: 搜索
+tags: 标签
+tagcloud: 标签云
+tweets: 推文
+prev: 上一页
+next: 下一页
+comment: 留言
+archive_a: 归档
+archive_b: 归档:%s
+page: 第 %d 页
+recent_posts: 最新文章
+description: 摘要
+read_more: 阅读此文
@@ -0,0 +1,14 @@
+categories: 分類
+search: 搜尋
+tags: 標籤
+tagcloud: 標籤雲
+tweets: 推文
+prev: 上一頁
+next: 下一頁
+comment: 留言
+archive_a: 彙整
+archive_b: 彙整:%s
+page: 第 %d 頁
+recent_posts: 最新文章
+description: 描述
+read_more: 閱讀本文
@@ -0,0 +1,33 @@
+
+<a id="gotop" href="#">
+ <span>▲</span>
+</a>
+
+<script src="<%- config.root %>dist/jquery.imagesloaded.min.js"></script>
+<script src="<%- config.root %>js/gallery.js"></script>
+<script src="<%- config.root %>js/bootstrap.js"></script>
+<script src="<%- config.root %>js/main.js"></script>
+
+<% if (config.disqus_shortname){ %>
+<script type="text/javascript">
+var disqus_shortname = '<%= config.disqus_shortname %>';
+
+(function(){
+ var dsq = document.createElement('script');
+ dsq.type = 'text/javascript';
+ dsq.async = true;
+ dsq.src = '//' + disqus_shortname + '.disqus.com/<% if (page.comments){ %>embed.js<% } else { %>count.js<% } %>';
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+}());
+</script>
+<% } %>
+
+<% if (theme.fancybox){ %>
+<link rel="stylesheet" href="<%- config.root %>fancybox/jquery.fancybox.css" media="screen" type="text/css">
+<script src="<%- config.root %>fancybox/jquery.fancybox.pack.js"></script>
+<script type="text/javascript">
+(function($){
+ $('.fancybox').fancybox();
+})(jQuery);
+</script>
+<% } %>
@@ -0,0 +1,72 @@
+<%
+var title = '';
+if (page.category) title = page.category;
+if (page.tag) title = page.tag;
+if (page.archive){
+ if (page.year) title = page.year + (page.month ? '/' + page.month : '');
+ else title = __('archive_a');
+}
+
+var last_year = 1970;
+var is_first_year = 1;
+%>
+
+<!-- title -->
+<div class="page-header">
+ <h1 class="archive-title<% if (page.tag){ %>-tag<% } else if (page.category){ %>-category<% } %>"><%= title %></h1>
+</div>
+
+<div class="row-fluid page">
+ <!-- span -->
+ <% if (theme.widgets.length) { %>
+ <div class="span9">
+ <% } else { %>
+ <div class="span12">
+ <% } %>
+
+
+<% if (pagination == 2){ %>
+ <!-- display as entry -->
+ <% page.posts.each(function(item){ %>
+ <%- partial('post/title', {item: item, index: true}) %>
+ <%- partial('post/entry', {item: item, index: true}) %>
+ <% }); %>
+<% } else { %>
+ <!-- display as list -->
+ <div class="archive">
+ <% page.posts.each(function(item){ %>
+ <%
+ var year = item.date.toDate().getFullYear();
+ var month = item.date.toDate().getMonth();
+ %>
+
+ <% if (year != last_year){ %>
+ </ul>
+ <% last_year = year; %>
+ <h4 class="archive-ul show" data-toggle="collapse" data-target="#<%= year %>"> <%= year %> <b class="caret"></b></h4>
+ <ul id="<%= year %>" class="collapse in">
+ <% } %>
+
+ <li class="listing-item">
+ <span class="date_class"> <%= item.date.format("YYYY-MM-DD") %> </span> &raquo;
+ <% if (item.link){ %>
+ <% if (item.title){ %>
+ <span class="title link"><a href="<%- item.link %>" target="_blank" <% if (item.description) { %> title="<%= item.description %>" <% } %>><%= item.title %></a></span>
+ <% } else { %>
+ <span class="title link"><a href="<%- item.link %>" target="_blank" <% if (item.description) { %> title="<%= item.description %>" <% } %>><%= item.link %></a></span>
+ <% } %>
+ <% } else { %>
+ <span class="title"><a href="<%- config.root %><%- item.path %>" <% if (item.description) { %> title="<%= item.description %>" <% } %>><%= item.title %></a></span>
+ <% } %>
+ </li>
+ <% }); %>
+ </ul>
+</div>
+<% } %>
+
+</div> <!-- span9/span12 -->
+
+<% if (theme.widgets.length) { %>
+ <%- partial('sidebar') %>
+<% } %>
+
@@ -0,0 +1,34 @@
+<%- partial('post/title', {item: item, index: false}) %>
+
+<div class="row-fluid <% if (post) { %>post<% } else { %>page<% } %>">
+ <!-- span -->
+ <% if (post) { %>
+ <div class="span9">
+ <% } else { %>
+ <div class="span12">
+ <% } %>
+
+ <!-- content -->
+ <% if (item.description) { %>
+ <div class="alert alert-success">
+ <i class="fa fa-info-circle"></i> <%= item.description %>
+ </div> <!-- alert -->
+ <% } %>
+
+ <!-- content -->
+ <div class="mypost">
+ <%- item.content %>
+ </div>
+
+ <!-- pagination -->
+ <%- partial('post/pagination', {page: item}) %>
+
+ <!-- comment -->
+ <%- partial('post/comment', {page: item}) %>
+
+ </div> <!-- span9/span12 -->
+ <% if (post) { %>
+ <%- partial('post/meta', {item: item}) %>
+ <% } %>
+
+</div><!-- row-fluid post-full -->
@@ -0,0 +1,10 @@
+<p><% if (config.author){ %>
+ &copy; <%= new Date().getFullYear() %> <%= config.author %>
+ <% } else { %>
+ &copy; <%= new Date().getFullYear() %> <%= config.title %>
+ <% } %>
+ with help from <a href="http://zespia.tw/hexo/" target="_blank">Hexo</a> and <a href="http://twitter.github.com/bootstrap/" target="_blank">Twitter Bootstrap</a>. Theme by <a href="http://hahack.tk/freemind/">freemind</a>.
+ <small>
+ <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh"><img title="知识共享许可协议" style="border-width: 0px; vertical-align: middle; display: inline; " src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png" original="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png"></a>
+ </small>
+ </p>
@@ -0,0 +1,60 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+ <meta charset="utf-8">
+ <%
+ var title = [];
+ if (page.current > 1) title.push(__('page', page.current));
+ if (page.title) title.push(page.title);
+ if (page.category) title.push(page.category);
+ if (page.tag) title.push(page.tag);
+ if (page.archive){
+ if (page.year) title.push(__('archive_b', page.year + (page.month ? '/' + page.month : '')));
+ else title.push(__('archive_a'));
+ }
+ title.push(config.title);
+ %>
+ <title><%= title.join(' | ') %></title>
+ <% if (config.author){ %><meta name="author" content="<%= config.author %>"><% } %>
+ <% if (page.description){ %>
+ <meta name="description" content="<%= page.description %>">
+ <% } else if (config.description){ %>
+ <meta name="description" content="<%= config.description %>">
+ <% } else if (page.excerpt){ %>
+ <meta name="description" content="<%= strip_html(page.excerpt).replace(/^\s*/, '').replace(/\s*$/, '') %>">
+ <% } else if (page.content){ %>
+ <meta name="description" content="<%= strip_html(page.content).replace(/^\s*/, '').replace(/\s*$/, '').substring(0, 150) %>">
+ <% } %>
+ <% if (page.keywords){ %><meta name="keywords" content="<%= page.keywords %>"><% } %>
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+
+ <% if (page.title){ %><meta property="og:title" content="<%= page.title %>"/><% } %>
+ <meta property="og:site_name" content="<%= config.title %>"/>
+
+ <% if(page.cover) { %>
+ <meta property="og:image" content="<%= page.cover %>" />
+ <% } else { %>
+ <meta property="og:image" content="<%= config.cover %>"/>
+ <% } %>
+
+ <link href="/images/favicon.png" rel="icon">
+ <link rel="alternate" href="<% if (theme.rss){ %><%- theme.rss %><% } else { %><%- config.root %>atom.xml<% } %>" title="<%= config.title %>" type="application/atom+xml">
+ <link rel="stylesheet" href="<%- config.root %>css/bootstrap.css" media="screen" type="text/css">
+ <link rel="stylesheet" href="<%- config.root %>css/bootstrap-responsive.css" media="screen" type="text/css">
+ <link rel="stylesheet" href="<%- config.root %>css/font-awesome.css" media="screen" type="text/css">
+ <link rel="stylesheet" href="<%- config.root %>css/style.css" media="screen" type="text/css">
+ <link rel="stylesheet" href="<%- config.root %>css/highlight.css" media="screen" type="text/css">
+ <link rel="stylesheet" href="<%- config.root %>css/sidenav.css" media="screen" type="text/css">
+ <link rel="stylesheet" href="<%- config.root %>css/responsive.css" media="screen" type="text/css">
+ <!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
+
+<% if (cache) { %>
+ <link href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow|PT+Sans:400,400italic,700,700italic|Droid+Serif:400,400italic' rel='stylesheet' type='text/css'>
+ <link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
+<% } %>
+
+<script src="<%- config.root %>dist/jquery-2.0.3.min.js"></script>
+
+<%- partial('post/google_analytics') %>
+
+</head>
@@ -0,0 +1,35 @@
+<div class="row-fluid page">
+
+ <% if (theme.widgets.length) { %>
+ <div class="span9">
+ <% } else { %>
+ <div class="span12">
+ <% } %>
+
+ <%- partial('post/slogan') %>
+ <div class="results"></div>
+
+ <!-- title and entry -->
+ <% page.posts.each(function(item){ %>
+ <%- partial('post/title', {item: item, index: index}) %>
+ <%- partial('post/entry', {item: item, index: index}) %>
+ <% }); %>
+
+ <hr>
+
+ <div>
+ <center>
+ <%- partial('index_pagination') %>
+
+ </center>
+ </div>
+ <!-- pagination -->
+
+
+ </div> <!-- span9 -->
+
+ <% if (theme.widgets.length) { %>
+ <%- partial('sidebar') %>
+ <% } %>
+
+</div> <!-- row-fluid -->
@@ -0,0 +1,20 @@
+<div class="pagination">
+ <% if (page.prev || page.next) { %>
+ <ul>
+ <% if (page.prev){ %>
+ <li class="prev"><a href="<%- config.root %><%- page.prev_link %>" class="alignleft prev"><i class="fa fa-arrow-circle-o-left"></i> <%= __('prev') %></a></li>
+ <% } else { %>
+ <li class="prev disabled"><a><i class="fa fa-arrow-circle-o-left"></i> <%= __('prev') %></a></li>
+ <% } %>
+
+ <li><a href="/">Home</a></li>
+
+ <% if (page.next){ %>
+ <li class="next"> <a href="<%- config.root %><%- page.next_link %>" class="alignright next"><%= __('next') %> <i class="fa fa-arrow-circle-o-right"></i></a> </li>
+ <% } else { %>
+ <li class="next disabled"><a><%= __('next') %> <i class="fa fa-arrow-circle-o-right"></i></a></li>
+ <% } %>
+ </ul>
+ <% } %>
+</div>
+
Oops, something went wrong.

0 comments on commit 608351b

Please sign in to comment.