├── .gitignore
├── layout
├── tag.ejs
├── .DS_Store
├── archive.ejs
├── category.ejs
├── page.ejs
├── post.ejs
├── _partial
│ ├── .DS_Store
│ ├── post
│ │ ├── .DS_Store
│ │ ├── gallery.ejs
│ │ ├── comment.ejs
│ │ ├── footer.ejs
│ │ ├── article.ejs
│ │ ├── catetags.ejs
│ │ ├── pagination.ejs
│ │ ├── jiathis.ejs
│ │ └── header.ejs
│ ├── pagination.ejs
│ ├── tags.ejs
│ ├── categories.ejs
│ ├── google_analytics.ejs
│ ├── search.ejs
│ ├── article.ejs
│ ├── archive.ejs
│ ├── sidebar.ejs
│ ├── footer.ejs
│ ├── header.ejs
│ ├── baidu_analytics.ejs
│ ├── head.ejs
│ └── after_footer.ejs
├── _widget
│ ├── .DS_Store
│ ├── rss.ejs
│ ├── tagcloud.ejs
│ ├── archive.ejs
│ ├── links.ejs
│ ├── recent_comments.ejs
│ ├── recent_posts.ejs
│ ├── tag.ejs
│ └── category.ejs
├── index.ejs
└── layout.ejs
├── source
├── .DS_Store
├── css
│ ├── .DS_Store
│ ├── _base
│ │ ├── .DS_Store
│ │ ├── font.styl
│ │ ├── variable.styl
│ │ ├── public.styl
│ │ └── code.styl
│ ├── _partial
│ │ ├── .DS_Store
│ │ ├── gallery.styl
│ │ ├── duoshuo.styl
│ │ ├── footer.styl
│ │ ├── body
│ │ ├── header.styl
│ │ ├── index.styl
│ │ ├── article.styl
│ │ ├── helper.styl
│ │ └── aside.styl
│ └── style.styl
├── font
│ ├── .DS_Store
│ ├── FontAwesome.otf
│ ├── fontawesome-webfont.eot
│ ├── fontawesome-webfont.ttf
│ ├── fontawesome-webfont.woff
│ ├── coveredbyyourgrace-webfont.eot
│ ├── coveredbyyourgrace-webfont.ttf
│ └── coveredbyyourgrace-webfont.woff
├── img
│ ├── .DS_Store
│ ├── author.jpg
│ ├── coney.png
│ ├── dots-2x.png
│ ├── favicon.ico
│ └── logo.svg
├── js
│ └── .DS_Store
└── fancybox
│ ├── blank.gif
│ ├── fancybox_loading.gif
│ ├── fancybox_overlay.png
│ ├── fancybox_sprite.png
│ ├── fancybox_sprite@2x.png
│ ├── fancybox_loading@2x.gif
│ ├── helpers
│ ├── fancybox_buttons.png
│ ├── jquery.fancybox-thumbs.css
│ ├── jquery.fancybox-buttons.css
│ ├── jquery.fancybox-buttons.js
│ ├── jquery.fancybox-thumbs.js
│ └── jquery.fancybox-media.js
│ ├── jquery.fancybox.css
│ ├── jquery.fancybox.pack.js
│ └── jquery.fancybox.js
├── scripts
├── .DS_Store
└── fancybox.js
├── languages
├── .DS_Store
├── zh-TW.yml
├── zh-CN.yml
└── default.yml
├── package.json
├── LICENSE
├── _config.yml
└── README.md
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | ._coney_config.yml
3 | ._common_config.yml
4 |
5 |
--------------------------------------------------------------------------------
/layout/tag.ejs:
--------------------------------------------------------------------------------
1 | <%- partial('_partial/archive', {pagination: config.tag}) %>
--------------------------------------------------------------------------------
/layout/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/layout/.DS_Store
--------------------------------------------------------------------------------
/source/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/.DS_Store
--------------------------------------------------------------------------------
/layout/archive.ejs:
--------------------------------------------------------------------------------
1 | <%- partial('_partial/archive', {pagination: config.archive}) %>
2 |
--------------------------------------------------------------------------------
/layout/category.ejs:
--------------------------------------------------------------------------------
1 | <%- partial('_partial/archive', {pagination: config.category}) %>
--------------------------------------------------------------------------------
/scripts/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/scripts/.DS_Store
--------------------------------------------------------------------------------
/languages/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/languages/.DS_Store
--------------------------------------------------------------------------------
/source/css/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/css/.DS_Store
--------------------------------------------------------------------------------
/source/font/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/font/.DS_Store
--------------------------------------------------------------------------------
/source/img/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/img/.DS_Store
--------------------------------------------------------------------------------
/source/img/author.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/img/author.jpg
--------------------------------------------------------------------------------
/source/img/coney.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/img/coney.png
--------------------------------------------------------------------------------
/source/js/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/js/.DS_Store
--------------------------------------------------------------------------------
/layout/page.ejs:
--------------------------------------------------------------------------------
1 | <%- partial('_partial/post/article', {item: page, index: false,table: false}) %>
--------------------------------------------------------------------------------
/layout/post.ejs:
--------------------------------------------------------------------------------
1 | <%- partial('_partial/post/article', {item: page, index: false,table: true}) %>
--------------------------------------------------------------------------------
/source/img/dots-2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/img/dots-2x.png
--------------------------------------------------------------------------------
/source/img/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/img/favicon.ico
--------------------------------------------------------------------------------
/layout/_partial/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/layout/_partial/.DS_Store
--------------------------------------------------------------------------------
/layout/_widget/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/layout/_widget/.DS_Store
--------------------------------------------------------------------------------
/source/css/_base/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/css/_base/.DS_Store
--------------------------------------------------------------------------------
/source/fancybox/blank.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/fancybox/blank.gif
--------------------------------------------------------------------------------
/source/font/FontAwesome.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/font/FontAwesome.otf
--------------------------------------------------------------------------------
/layout/_partial/post/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/layout/_partial/post/.DS_Store
--------------------------------------------------------------------------------
/source/css/_partial/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/css/_partial/.DS_Store
--------------------------------------------------------------------------------
/source/fancybox/fancybox_loading.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/fancybox/fancybox_loading.gif
--------------------------------------------------------------------------------
/source/fancybox/fancybox_overlay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/fancybox/fancybox_overlay.png
--------------------------------------------------------------------------------
/source/fancybox/fancybox_sprite.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/fancybox/fancybox_sprite.png
--------------------------------------------------------------------------------
/source/font/fontawesome-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/font/fontawesome-webfont.eot
--------------------------------------------------------------------------------
/source/font/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/font/fontawesome-webfont.ttf
--------------------------------------------------------------------------------
/source/font/fontawesome-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/font/fontawesome-webfont.woff
--------------------------------------------------------------------------------
/source/fancybox/fancybox_sprite@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/fancybox/fancybox_sprite@2x.png
--------------------------------------------------------------------------------
/source/fancybox/fancybox_loading@2x.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/fancybox/fancybox_loading@2x.gif
--------------------------------------------------------------------------------
/layout/_widget/rss.ejs:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/source/font/coveredbyyourgrace-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/font/coveredbyyourgrace-webfont.eot
--------------------------------------------------------------------------------
/source/font/coveredbyyourgrace-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/font/coveredbyyourgrace-webfont.ttf
--------------------------------------------------------------------------------
/source/font/coveredbyyourgrace-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/font/coveredbyyourgrace-webfont.woff
--------------------------------------------------------------------------------
/source/fancybox/helpers/fancybox_buttons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coneycode/coney/HEAD/source/fancybox/helpers/fancybox_buttons.png
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "hexo-site",
3 | "version": "2.8.3",
4 | "private": true,
5 | "dependencies": {
6 | "hexo-renderer-ejs": "*",
7 | "hexo-renderer-stylus": "*",
8 | "hexo-renderer-marked": "*"
9 | }
10 | }
--------------------------------------------------------------------------------
/layout/_widget/tagcloud.ejs:
--------------------------------------------------------------------------------
1 | <% if (site.tags.length){ %>
2 |
3 |
<%= __('tagcloud') %>
4 |
5 | <%- tagcloud() %>
6 |
7 |
8 | <% } %>
--------------------------------------------------------------------------------
/layout/_widget/archive.ejs:
--------------------------------------------------------------------------------
1 | <% if (site.posts.length){ %>
2 |
6 | <% } %>
7 |
--------------------------------------------------------------------------------
/layout/_widget/links.ejs:
--------------------------------------------------------------------------------
1 |
2 |
<%= __('links') %>
3 |
7 |
8 |
--------------------------------------------------------------------------------
/layout/_widget/recent_comments.ejs:
--------------------------------------------------------------------------------
1 | <% if (site.posts.length){ %>
2 |
7 | <% } %>
--------------------------------------------------------------------------------
/languages/zh-TW.yml:
--------------------------------------------------------------------------------
1 | categories: 分類
2 | search: 搜索
3 | tags: 標簽
4 | tagcloud: 標簽雲
5 | prev: 上一頁
6 | next: 下一頁
7 | comment: 文章評論
8 | contents: 文章目錄
9 | archive_a: 歸檔
10 | archive_b: 歸檔:%s
11 | page: 第 %d 頁
12 | recent_posts: 近期文章
13 | menu: 菜單
14 | links: 友情鏈接
15 | rss: RSS 訂閱
16 | showsidebar: 顯示側邊欄
17 | hidesidebar: 隱藏側邊欄
18 | updated: 更新日期
--------------------------------------------------------------------------------
/layout/_partial/pagination.ejs:
--------------------------------------------------------------------------------
1 |
2 | <% if (page.prev){ %>
3 | <%= __('prev') %>
4 | <% } %>
5 | <% if (page.next){ %>
6 | <%= __('next') %>
7 | <% } %>
8 |
--------------------------------------------------------------------------------
/languages/zh-CN.yml:
--------------------------------------------------------------------------------
1 | home: 首页
2 | archives: 归档
3 | categories: 分类
4 | search: 搜索
5 | tags: 标签
6 | tagcloud: 标签云
7 | prev: 上一页
8 | next: 下一页
9 | comment: 文章评论
10 | contents: 文章目录
11 | archive_a: 归档
12 | archive_b: 归档:%s
13 | page: 第 %d 页
14 | recent_posts: 近期文章
15 | recent_comments: 近期评论
16 | menu: 菜单
17 | links: 友情链接
18 | rss: RSS 订阅
19 | showsidebar: 显示侧边栏
20 | hidesidebar: 隐藏侧边栏
21 | updated: 更新日期
--------------------------------------------------------------------------------
/layout/_widget/recent_posts.ejs:
--------------------------------------------------------------------------------
1 | <% if (site.posts.length){ %>
2 |
3 |
<%= __('recent_posts') %>
4 |
5 | <% site.posts.sort('date', -1).limit(5).each(function(post){ %>
6 |
7 | <%= post.title %>
8 |
9 | <% }); %>
10 |
11 |
12 | <% } %>
--------------------------------------------------------------------------------
/layout/_widget/tag.ejs:
--------------------------------------------------------------------------------
1 | <% if (site.tags.length){ %>
2 |
10 | <% } %>
--------------------------------------------------------------------------------
/layout/_widget/category.ejs:
--------------------------------------------------------------------------------
1 | <% if (site.categories.length){ %>
2 |
3 |
<%= __('categories') %>
4 |
9 |
10 | <% } %>
--------------------------------------------------------------------------------
/languages/default.yml:
--------------------------------------------------------------------------------
1 | categories: Categories
2 | search: Search
3 | tags: Tags
4 | tagcloud: "Tag Cloud"
5 | prev: Prev
6 | next: Next
7 | comment: Comments
8 | contents: Contents
9 | archive_a: Archives
10 | archive_b: "Archives: %s"
11 | page: "Page %d"
12 | recent_posts: "Recent Posts"
13 | menu: Menu
14 | links: Links
15 | rss: RSS
16 | showsidebar: "Show Sidebar"
17 | hidesidebar: "Hide Sidebar"
18 | updated: Updated
19 |
--------------------------------------------------------------------------------
/layout/_partial/post/gallery.ejs:
--------------------------------------------------------------------------------
1 | <% if (item.photos && item.photos.length){ %>
2 |
3 |
4 | <% item.photos.forEach(function(photo, i){ %>
5 |
6 |
7 |
8 | <% }) %>
9 |
10 |
11 | <% } %>
--------------------------------------------------------------------------------
/source/css/_partial/gallery.styl:
--------------------------------------------------------------------------------
1 | .article-gallery
2 | background color-section
3 | position relative
4 |
5 | .article-gallery-photos
6 | position relative
7 | overflow hidden
8 |
9 | .article-gallery-img
10 | display none;
11 | max-width 100%
12 | &:first-child
13 | display block
14 | .loaded
15 | position absolute
16 | display block
17 | img
18 | display block
19 | max-width 100%
20 | margin 0 auto
21 |
--------------------------------------------------------------------------------
/layout/_partial/post/comment.ejs:
--------------------------------------------------------------------------------
1 | <% if (theme.duoshuo.enable && page.comments){ %>
2 |
9 | <% } %>
10 |
--------------------------------------------------------------------------------
/layout/_partial/post/footer.ejs:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/source/css/style.styl:
--------------------------------------------------------------------------------
1 | @import 'nib'
2 |
3 | global-reset()
4 | @import '_base/variable'
5 | @import '_base/font'
6 | @import '_base/public'
7 | @import '_partial/header'
8 | @import '_partial/index'
9 | @import '_partial/article'
10 | @import '_partial/helper'
11 | @import '_partial/aside'
12 | @import '_partial/footer'
13 | if highlight
14 | @import '_base/code'
15 | if duoshuo
16 | @import '_partial/duoshuo'
17 | if fancybox
18 | @import '_partial/gallery'
19 |
--------------------------------------------------------------------------------
/layout/_partial/tags.ejs:
--------------------------------------------------------------------------------
1 | <%
2 | page.tag = ' ';
3 | %>
4 |
10 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/layout/_partial/categories.ejs:
--------------------------------------------------------------------------------
1 | <%
2 | page.category = ' ';
3 | %>
4 |
10 |
13 |
14 |
--------------------------------------------------------------------------------
/layout/index.ejs:
--------------------------------------------------------------------------------
1 |
2 | <% page.posts.each(function(item){
3 | if(item.top){ %>
4 | <%- partial('_partial/article', {item: item, index: true,desc: true}) %>
5 | <% }}); %>
6 | <% page.posts.each(function(item){ if(!item.top){%>
7 | <%- partial('_partial/article', {item: item, index: true,desc: true}) %>
8 | <% }}); %>
9 | <% if (page.total > 1){ %>
10 |
11 | <%- paginator({
12 | prev_text: '« Prev',
13 | next_text: 'Next »'
14 | }) %>
15 |
16 | <% } %>
17 |
--------------------------------------------------------------------------------
/layout/_partial/google_analytics.ejs:
--------------------------------------------------------------------------------
1 | <% if (theme.google_analytics.enable){ %>
2 |
10 | <% } %>
--------------------------------------------------------------------------------
/layout/_partial/post/article.ejs:
--------------------------------------------------------------------------------
1 |
2 |
3 | <%- partial('header') %>
4 |
5 | <%- partial('gallery') %>
6 | <% if( table&&(item.toc !== false) && theme.toc.article){ %>
7 |
8 | <%= __('contents') %>
9 | <%- toc(item.content) %>
10 |
11 | <% } %>
12 | <%- item.content %>
13 |
14 | <%- partial('footer') %>
15 |
16 | <%- partial('pagination') %>
17 | <%- partial('comment') %>
18 |
--------------------------------------------------------------------------------
/layout/_partial/post/catetags.ejs:
--------------------------------------------------------------------------------
1 | <% if (item.tags && item.tags.length){ %>
2 |
3 | <% var tags = [];
4 | item.tags.forEach(function(tag){
5 | tags.push('
' + tag.name + ' ');
6 | }); %>
7 |
<%- tags.join('') %>
8 |
9 | <% } %>
10 | <% if (item.categories && item.categories.length){ %>
11 |
12 |
13 | <%- list_categories(item.categories, {
14 | show_count: false,
15 | class: 'article-category',
16 | style: 'none',
17 | separator: '►'
18 | }) %>
19 |
20 | <% } %>
21 |
22 |
--------------------------------------------------------------------------------
/layout/_partial/post/pagination.ejs:
--------------------------------------------------------------------------------
1 | <% if (page.prev || page.next){ %>
2 |
3 | <% if (page.prev){ %>
4 |
11 | <% } %>
12 | <% if (page.next){ %>
13 |
20 | <% } %>
21 |
22 | <% } %>
--------------------------------------------------------------------------------
/scripts/fancybox.js:
--------------------------------------------------------------------------------
1 | var rUrl = /((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[.\!\/\\w]*))?)/;
2 |
3 | /**
4 | * Fancybox tag
5 | *
6 | * Syntax:
7 | * {% fancybox /path/to/image [/path/to/thumbnail] [title] %}
8 | */
9 |
10 | hexo.extend.tag.register('fancybox', function(args){
11 | var original = args.shift(),
12 | thumbnail = '';
13 |
14 | if (args.length && rUrl.test(args[0])){
15 | thumbnail = args.shift();
16 | }
17 |
18 | var title = args.join(' ');
19 |
20 | return '' +
21 | ' '
22 | ' ' +
23 | (title ? '' + title + ' ' : '');
24 | });
--------------------------------------------------------------------------------
/layout/_partial/search.ejs:
--------------------------------------------------------------------------------
1 | <% if(theme.google_cse.enable) { %>
2 |
5 |
6 |
21 | <% } %>
22 |
--------------------------------------------------------------------------------
/layout/_partial/article.ejs:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/layout/_partial/post/jiathis.ejs:
--------------------------------------------------------------------------------
1 | <% if (theme.jiathis.enable){ %>
2 |
10 |
19 |
21 | <% } %>
--------------------------------------------------------------------------------
/source/fancybox/helpers/jquery.fancybox-thumbs.css:
--------------------------------------------------------------------------------
1 | #fancybox-thumbs {
2 | position: fixed;
3 | left: 0;
4 | width: 100%;
5 | overflow: hidden;
6 | z-index: 8050;
7 | }
8 |
9 | #fancybox-thumbs.bottom {
10 | bottom: 2px;
11 | }
12 |
13 | #fancybox-thumbs.top {
14 | top: 2px;
15 | }
16 |
17 | #fancybox-thumbs ul {
18 | position: relative;
19 | list-style: none;
20 | margin: 0;
21 | padding: 0;
22 | }
23 |
24 | #fancybox-thumbs ul li {
25 | float: left;
26 | padding: 1px;
27 | opacity: 0.5;
28 | }
29 |
30 | #fancybox-thumbs ul li.active {
31 | opacity: 0.75;
32 | padding: 0;
33 | border: 1px solid #fff;
34 | }
35 |
36 | #fancybox-thumbs ul li:hover {
37 | opacity: 1;
38 | }
39 |
40 | #fancybox-thumbs ul li a {
41 | display: block;
42 | position: relative;
43 | overflow: hidden;
44 | border: 1px solid #222;
45 | background: #111;
46 | outline: none;
47 | }
48 |
49 | #fancybox-thumbs ul li img {
50 | display: block;
51 | position: relative;
52 | border: 0;
53 | padding: 0;
54 | max-width: none;
55 | }
--------------------------------------------------------------------------------
/layout/_partial/post/header.ejs:
--------------------------------------------------------------------------------
1 |
2 |
7 | By
8 | <% if (theme.author.google_plus){ %>
9 | <%= config.author %>
10 | <% } else { %>
11 | <%= config.author %>
12 | <% } %>
13 |
14 | <%= item.date.format(config.date_format) %>
15 | <% if (item.updated!=null) { %><%= __('updated') %>:<%= item.updated.format(config.date_format) %>
16 | <% } %>
17 |
18 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 Coney Geng
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/source/css/_base/font.styl:
--------------------------------------------------------------------------------
1 | /*! custom Font*/
2 | font-url(filename)
3 | return '../font/' + filename
4 |
5 | customfont(family, filename)
6 | @font-face
7 | font-family family
8 | font-weight normal
9 | font-style normal
10 | src url(font-url(filename + '.eot'))
11 | src url(font-url(filename + '.eot?#iefix')) format('embedded-opentype'),
12 | url(font-url(filename + '.svg#'+ family)) format('svg'),
13 | url(font-url(filename + '.woff')) format('woff'),
14 | url(font-url(filename + '.ttf')) format('truetype')
15 |
16 | customfont(font-custom-family,font-custom-filename)
17 |
18 | /*! icon Font */
19 | iconfont(family, filename,font-icon-version)
20 | @font-face
21 | font-family family
22 | font-style normal
23 | font-weight normal
24 | src url(font-url(filename + ".eot?v=#" + font-icon-version))
25 | src url(font-url(filename + ".eot?#iefix&v=#" + font-icon-version)) format("embedded-opentype"),
26 | url(font-url(filename + ".woff?v=#" + font-icon-version)) format("woff"),
27 | url(font-url(filename + ".ttf?v=#" + font-icon-version)) format("truetype"),
28 | url(font-url(filename + ".svg#fontawesomeregular?v=#" + font-icon-version)) format("svg")
29 |
30 | iconfont(font-icon-family,font-icon-filename,font-icon-version)
--------------------------------------------------------------------------------
/layout/_partial/archive.ejs:
--------------------------------------------------------------------------------
1 | <%
2 | var title = '';
3 | var icon = '';
4 | if (page.category){
5 | title = page.category;
6 | icon = 'category';
7 | };
8 | if (page.tag){
9 | title = page.tag;
10 | icon = 'tag';
11 | };
12 | if (page.archive){
13 | icon = 'archive';
14 | if (page.year) title = page.year+ (page.month ? '/' + page.month : '');
15 | else title = __('archive_a');
16 | };
17 | %>
18 |
19 |
20 |
<%= title %>
21 | <% if(page.archive){ %>
22 |
23 | <%- list_archives({format: 'YYYY 年 MM 月'}) %>
24 |
25 | <% } %>
26 |
27 |
28 |
29 | <% page.posts.each(function(item){
30 | if(item.top){ %>
31 | <%- partial('_partial/article', {item: item, index: true,desc: false}) %>
32 | <% }}); %>
33 | <% page.posts.each(function(item){ if(!item.top){%>
34 | <%- partial('_partial/article', {item: item, index: true,desc: false}) %>
35 | <% }}); %>
36 | <% if (page.total > 1){ %>
37 |
38 | <%- paginator({
39 | prev_text: '« Prev',
40 | next_text: 'Next »'
41 | }) %>
42 |
43 | <% } %>
44 |
45 |
46 |
--------------------------------------------------------------------------------
/source/css/_partial/duoshuo.styl:
--------------------------------------------------------------------------------
1 | .ds-highlight
2 | color color-blue !important
3 | &:hover
4 | color color-theme !important
5 |
6 | .ds-avatar
7 | background color-section !important
8 | img
9 | width 54px !important
10 | height 54px !important
11 | border 2px solid lighten(color-gray,30%) !important
12 | border-radius 27px !important
13 | transition transform .5s ease-out !important
14 | &:hover
15 | transform rotateZ(360deg) !important
16 | box-shadow inset 0 -1px 0 #3333sf !important
17 |
18 | .ds-children .ds-avatar img
19 | width 30px !important
20 | height 30px !important
21 | border-radius 15px !important
22 | transition transform .5s ease-out !important
23 | border 1px solid lighten(color-gray,30%) !important
24 | &:hover
25 | transform rotateZ(360deg) !important
26 | box-shadow inset 0 -1px 0 #3333sf !important
27 |
28 | .ds-replybox img
29 | width 30px !important
30 | height 30px !important
31 |
32 | .ds-comment-body
33 | padding-left 80px !important
34 |
35 | .ds-children .ds-comment-body
36 | padding-left 60px !important
37 |
38 | .ds-post
39 | border-radius none !important
40 | border-top none !important
41 | margin-top 0.5em !important
42 |
43 | .ds-comments
44 | padding-bottom 1em !important
45 |
46 | textarea
47 | color color-font !important
48 | background color-white !important
49 | &::-webkit-input-placeholder
50 | color color-font !important
51 | &::-moz-placeholder
52 | color color-font !important
--------------------------------------------------------------------------------
/layout/_partial/sidebar.ejs:
--------------------------------------------------------------------------------
1 |
2 | <% if( table&&(item.toc !== false) && theme.toc.aside){ %>
3 |
4 | <%= __('contents') %>
5 | <%- toc(item.content) %>
6 |
7 | <% } %>
8 |
--------------------------------------------------------------------------------
/layout/_partial/footer.ejs:
--------------------------------------------------------------------------------
1 |
38 |
--------------------------------------------------------------------------------
/layout/_partial/header.ejs:
--------------------------------------------------------------------------------
1 |
2 | <% if (theme.imglogo.enable&&theme.imglogo.src){ %>
3 |
4 |
5 |
6 | <% } %>
7 |
11 |
13 |
14 |
15 |
16 | <% for (var i in theme.menu){ %>
17 | <%= i %>
18 | <% } %>
19 |
20 | <% if (theme.google_cse&&theme.google_cse.enable){ %>
21 |
25 | <% } else if(theme.baidu_search&&theme.baidu_search.enable){ %>
26 |
35 | <% } %>
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/source/css/_base/variable.styl:
--------------------------------------------------------------------------------
1 | //Color
2 | background = convert(hexo-config("theme_color.background"))
3 | if(background is a 'rgba')
4 | color-background = background
5 | else
6 | color-background = #dddddd
7 |
8 | font = convert(hexo-config("theme_color.font"))
9 | if(font is a 'rgba')
10 | color-font = font
11 | else
12 | color-font = #817c7c
13 |
14 | color-white = #ffffff
15 | color-blue = #2ca6cb
16 |
17 | theme = convert(hexo-config("theme_color.theme"))
18 | if(theme is a 'rgba')
19 | color-theme = theme
20 | else
21 | color-theme = #ea6753
22 |
23 | color-font-nav =#E9CD4C
24 | color-section = #fafafa
25 |
26 | footer = convert(hexo-config("theme_color.footer"))
27 | if(footer is a 'rgba')
28 | color-footer = footer
29 | else
30 | color-footer = #ddd
31 |
32 | color-gray = #CCC
33 | color-heading = #333333
34 | color-code = #eee
35 | color-twitter = #00aced
36 | color-facebook = #3b5998
37 | color-weibo = #eb182c
38 | color-google = #dd4b39
39 | color-qrcode= #49ae0f
40 | color-top = #762c54
41 |
42 | //Media
43 | width-phone = 568px
44 | width-mini = 768px
45 | width-tablet = 1024px
46 | width-desktop = 1560px
47 | phone = "only screen and (min-width: " + width-phone + ")"
48 | mini= "only screen and (min-width: " + width-mini + ")"
49 | tablet = "only screen and (min-width: " + width-tablet + ")"
50 | desktop = "only screen and (min-width: " + width-desktop + ")"
51 |
52 | //Font
53 | font-default = "Helvetica Neue", "Helvetica","Microsoft YaHei", "WenQuanYi Micro Hei",Arial, sans-serif
54 | font-serif = "Georgia", serif
55 | font-mono = Monaco, Menlo, Consolas, Courier New, monospace
56 | font-custom-family = "covered_by_your_graceregular"
57 | font-custom-filename = coveredbyyourgrace-webfont
58 | font-icon-family = "FontAwesome"
59 | font-icon-filename = fontawesome-webfont
60 | font-icon-version = "4.0.3"
61 | ShowCustomFont = hexo-config("ShowCustomFont")
62 | font-size = 100%
63 | line-height = 1.5
64 |
65 | //image
66 | dataURI = hexo-config("dataURI")
67 | author-img-data = unquote(hexo-config("author_img_data"))
68 | author-img = hexo-config("author_img")
69 | ShowGallery = hexo-config("ShowGallery")
70 | root = hexo-config("root")
71 |
72 | //comment
73 | duoshuo = hexo-config("duoshuo.enable")
74 |
75 | //highlight
76 | highlight = hexo-config("highlight.enable")
77 |
--------------------------------------------------------------------------------
/source/css/_partial/footer.styl:
--------------------------------------------------------------------------------
1 | footer
2 | margin-top 3em
3 | margin-bottom 3em
4 | padding 0 2% 0.5em
5 |
6 | #footer
7 | width 100%
8 | margin 0 auto
9 | overflow hidden
10 | position relative
11 | .line
12 | width 100%
13 | height 14em
14 | margin 0 auto
15 | @media mini
16 | width 10em
17 | float left
18 | position relative
19 | span
20 | display block
21 | width 0.5em
22 | height 6.25em
23 | border-right 0.125em solid color-white
24 | margin 0 auto
25 | @media mini
26 | position absolute
27 | left 3em
28 | margin 0 0 1.5em
29 |
30 | .author
31 | width w=(110/16)em
32 | height w
33 | margin 0 auto
34 | if dataURI
35 | background no-repeat url(author-img-data) left top
36 | else
37 | background no-repeat url(root+author-img) left top
38 | background-size w w
39 | border-radius (w/2)
40 | transition transform 2s ease-out
41 | &:hover
42 | transform rotateZ(360deg)
43 | @media mini
44 | position: absolute;
45 | top 6em
46 | margin 0 0 1.5em
47 |
48 | .info
49 | if ShowCustomFont
50 | font-family font-custom-family
51 | font-smoothing()
52 | font-size font-size+50
53 | line-height 1.3em
54 | else
55 | font-family font-default
56 | line-height line-height+0.15
57 | width 90%
58 | margin 0 auto
59 | color color-white
60 | @media mini
61 | margin 4.5em 0 2em 0
62 | float left
63 | width 75%
64 |
65 | .social-font
66 | width 100%
67 | margin 0 auto
68 | float left
69 | padding-left 3%
70 | @media phone
71 | padding-left 20%
72 | @media mini
73 | width 18em
74 | position absolute
75 | right -3em
76 | top 3em
77 | a
78 | float left
79 | display block
80 | width 14%
81 | color color-white
82 | font-size font-size+80
83 | padding 0.5em
84 | @media tablet
85 | padding 0.3em
86 | &:hover:before
87 | color color-blue
88 | .copyright
89 | background color-footer
90 | border-radius 6px
91 | if ShowCustomFont
92 | font-smoothing()
93 | font-family font-default
94 | else
95 | font-family font-default
96 | font-size 0.6em
97 | width 100%
98 | color color-black
99 | text-align center
100 | @media mini
101 | float left
102 | a
103 | color color-blue
104 | &:hover
105 | color color-blue
106 |
--------------------------------------------------------------------------------
/layout/_partial/baidu_analytics.ejs:
--------------------------------------------------------------------------------
1 | <% if (theme.baidu_share.enable){ %>
2 |
71 | <% } %>
72 | <% if (false){ //close baidu_analytics, using asyn baidu_analytics in head.ejs%>
73 |
78 | <% } %>
79 |
--------------------------------------------------------------------------------
/source/fancybox/helpers/jquery.fancybox-buttons.css:
--------------------------------------------------------------------------------
1 | #fancybox-buttons {
2 | position: fixed;
3 | left: 0;
4 | width: 100%;
5 | z-index: 8050;
6 | }
7 |
8 | #fancybox-buttons.top {
9 | top: 10px;
10 | }
11 |
12 | #fancybox-buttons.bottom {
13 | bottom: 10px;
14 | }
15 |
16 | #fancybox-buttons ul {
17 | display: block;
18 | width: 166px;
19 | height: 30px;
20 | margin: 0 auto;
21 | padding: 0;
22 | list-style: none;
23 | border: 1px solid #111;
24 | border-radius: 3px;
25 | -webkit-box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
26 | -moz-box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
27 | box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
28 | background: rgb(50,50,50);
29 | background: -moz-linear-gradient(top, rgb(68,68,68) 0%, rgb(52,52,52) 50%, rgb(41,41,41) 50%, rgb(51,51,51) 100%);
30 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(68,68,68)), color-stop(50%,rgb(52,52,52)), color-stop(50%,rgb(41,41,41)), color-stop(100%,rgb(51,51,51)));
31 | background: -webkit-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
32 | background: -o-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
33 | background: -ms-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
34 | background: linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%);
35 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#444444', endColorstr='#222222',GradientType=0 );
36 | }
37 |
38 | #fancybox-buttons ul li {
39 | float: left;
40 | margin: 0;
41 | padding: 0;
42 | }
43 |
44 | #fancybox-buttons a {
45 | display: block;
46 | width: 30px;
47 | height: 30px;
48 | text-indent: -9999px;
49 | background-color: transparent;
50 | background-image: url('fancybox_buttons.png');
51 | background-repeat: no-repeat;
52 | outline: none;
53 | opacity: 0.8;
54 | }
55 |
56 | #fancybox-buttons a:hover {
57 | opacity: 1;
58 | }
59 |
60 | #fancybox-buttons a.btnPrev {
61 | background-position: 5px 0;
62 | }
63 |
64 | #fancybox-buttons a.btnNext {
65 | background-position: -33px 0;
66 | border-right: 1px solid #3e3e3e;
67 | }
68 |
69 | #fancybox-buttons a.btnPlay {
70 | background-position: 0 -30px;
71 | }
72 |
73 | #fancybox-buttons a.btnPlayOn {
74 | background-position: -30px -30px;
75 | }
76 |
77 | #fancybox-buttons a.btnToggle {
78 | background-position: 3px -60px;
79 | border-left: 1px solid #111;
80 | border-right: 1px solid #3e3e3e;
81 | width: 35px
82 | }
83 |
84 | #fancybox-buttons a.btnToggleOn {
85 | background-position: -27px -60px;
86 | }
87 |
88 | #fancybox-buttons a.btnClose {
89 | border-left: 1px solid #111;
90 | width: 35px;
91 | background-position: -56px 0px;
92 | }
93 |
94 | #fancybox-buttons a.btnDisabled {
95 | opacity : 0.4;
96 | cursor: default;
97 | }
--------------------------------------------------------------------------------
/source/css/_base/public.styl:
--------------------------------------------------------------------------------
1 | //public method
2 | absolute-center(width, height = width)
3 | width width
4 | height height
5 | position absolute
6 | top 50%
7 | left 50%
8 | margin-top width * -0.5
9 | margin-left height * -0.5
10 |
11 | font-smoothing()
12 | -webkit-font-smoothing antialiased
13 | -moz-osx-font-smoothing grayscale
14 |
15 | /*! Public style */
16 | *
17 | -webkit-margin-before 0
18 | -webkit-margin-after 0
19 |
20 | body
21 | background color-background
22 | font-family font-default
23 | font-size font-size
24 | color color-font
25 | line-height line-height
26 |
27 | small
28 | font-size 80%
29 |
30 | sub,sup
31 | font-size 75%
32 | line-height 0
33 | position relative
34 | vertical-align baseline
35 |
36 | sup
37 | top -0.5em
38 | padding-left 0.3em
39 |
40 | sub
41 | bottom -0.25em
42 |
43 | a
44 | text-decoration none
45 | color color-font
46 | &:hover,&:focus
47 | outline 0
48 | text-decoration none
49 | transition color .25s,background .5s
50 | &:hover:before
51 | transition color .25s,background .5s
52 |
53 | input:focus
54 | outline none
55 |
56 | input, button
57 | margin: 0
58 | padding: 0
59 | &::-moz-focus-inner
60 | border: 0
61 | padding: 0
62 |
63 | h1
64 | font-size 1.5em
65 |
66 | .fa
67 | display inline-block
68 | font-family FontAwesome
69 | font-style normal
70 | font-weight normal
71 | line-height 1
72 | -webkit-font-smoothing antialiased
73 | -moz-osx-font-smoothing grayscale
74 |
75 | .clearfix
76 | clearfix()
77 |
78 | ::-webkit-input-placeholder { color:color-white; padding: 2px 0 0 4px;}
79 | ::-moz-placeholder { color:color-white; padding: 2px 0 0 4px;}
80 | :-ms-input-placeholder { color:color-white; padding: 2px 0 0 4px;}
81 | ::-webkit-input-placeholder::before{font-family:font-icon-family;font-smoothing();content: "\f002";padding-right: 4px;}
82 | ::-moz-placeholder:before{font-family:font-icon-family;font-smoothing();content: "\f002";padding-right: 4px;}
83 | :-ms-input-placeholder::before{font-family:font-icon-family;font-smoothing();content: "\f002";padding-right: 4px;}
84 |
85 | input[type="search"]::-webkit-search-cancel-button,
86 | input[type="search"]::-webkit-search-decoration
87 | -webkit-appearance none
88 | ::-webkit-search-cancel-button:after
89 | font-family font-icon-family
90 | font-smoothing()
91 | content '\f00d'
92 | color color-white
93 | padding-right 4px
94 |
95 | /*! css3 animate */
96 | .animated
97 | animation-fill-mode both
98 | animation-duration 1s
99 |
100 | @-webkit-keyframes fadeIn
101 | 0%
102 | opacity 0
103 | 100%
104 | opacity 1
105 |
106 | .fadeIn
107 | animation-name fadeIn
108 |
109 | @keyframes fadeInDown
110 | 0%
111 | opacity 0
112 | transform translateY(-20px)
113 | 100%
114 | opacity 1
115 | transform translateY(0)
116 |
117 | .fadeOut
118 | animation-name fadeOut
119 |
120 |
--------------------------------------------------------------------------------
/source/css/_partial/body:
--------------------------------------------------------------------------------
1 | body
2 | >header
3 | width 100%
4 | box-shadow 2px 4px 5px hsla(0,1%,1%,.2)
5 | background color-theme
6 | color color-white
7 | padding 0em 0 0.8em
8 | @media tablet
9 | padding 0em 0 0.1em
10 | >div
11 | width 95%
12 | margin 0 auto
13 | position relative
14 | overflow hidden
15 | @media tablet
16 | width 93%
17 | a
18 | display block
19 | color color-white
20 |
21 | #imglogo
22 | float left
23 | width 4em
24 | height 4em
25 | @media mini
26 | width @width+1
27 | @media tablet
28 | width @width+1.5
29 | img
30 | width 4em
31 | @media mini
32 | width @width+1
33 | @media tablet
34 | width @width+1.5
35 |
36 | #textlogo
37 | float left
38 | text-align center
39 | width 100%
40 | margin-left 0.5em
41 | h1.site-name
42 | width 100%
43 | if ShowCustomFont
44 | font-family font-custom-family
45 | font-size font-size+100
46 | line-height line-height
47 | font-smoothing()
48 | @media mini
49 | font-size font-size+140
50 | @media tablet
51 | font-size font-size+180
52 | else
53 | font-family font-default
54 | font-size font-size+60
55 | line-height line-height+0.4
56 | font-weight normal
57 | @media mini
58 | font-size font-size+90
59 | @media tablet
60 | font-size font-size+120
61 | h2.blog-motto
62 | font-size 0.7em
63 | font-weight normal
64 | @media mini
65 | font-size font-size
66 | @media tablet
67 | font-size font-size+10
68 |
69 | .navbar
70 | float left
71 | width 2em
72 | right 0em
73 | top 1.6em
74 | padding 0.5em
75 | @media tablet
76 | display none
77 |
78 | .navbutton::before
79 | font-family font-icon-family
80 | font-smoothing()
81 | content "\f0c9"
82 |
83 | .navmobile::before
84 | padding-left 1em
85 |
86 | header nav
87 | float left
88 | width 100%
89 | @media phone
90 | width 50%
91 | @media tablet
92 | float right
93 | width auto
94 | margin-top 3em
95 | max-height none
96 | font-size font-size+12.5
97 | padding-top 0.5em
98 | max-height 0.01em
99 | transition max-height 1s ease-out
100 | ul
101 | @media tablet
102 | float right
103 | ul li
104 | @media tablet
105 | float left
106 | ul li a
107 | padding 0.2em 0 0.2em 1em
108 | @media tablet
109 | padding 0.2em 1.5em
110 | &:hover
111 | background saturate(darken(color-theme, 25%), 10%)
112 | color color-font-nav
113 |
114 | .shownav
115 | max-height 40em
116 |
117 | .search
118 | padding 0.1em 0 0 1em
119 | input
120 | line-height line-height+0.2
121 | border 1px solid color-white
122 | color color-white
123 | background transparent
124 | width 80%
125 | padding-left 0.5em
126 | @media tablet
127 | width 8em
128 | transition .5s width
129 | &:focus
130 | width 15em
131 | label
132 | display none
--------------------------------------------------------------------------------
/source/css/_partial/header.styl:
--------------------------------------------------------------------------------
1 | body
2 | >header
3 | width 100%
4 | box-shadow 2px 4px 5px hsla(0,1%,1%,.2)
5 | background color-theme
6 | color color-white
7 | padding 1em 0 0.8em
8 | @media tablet
9 | padding 1.8em 0 1.5em
10 | >div
11 | width 95%
12 | margin 0 auto
13 | position relative
14 | overflow hidden
15 | @media tablet
16 | width 93%
17 | a
18 | display block
19 | color color-white
20 |
21 | #imglogo
22 | float left
23 | width 4em
24 | height 4em
25 | @media mini
26 | width @width+1
27 | @media tablet
28 | width @width+1.5
29 | img
30 | width 4em
31 | @media mini
32 | width @width+1
33 | @media tablet
34 | width @width+1.5
35 |
36 | #textlogo
37 | float left
38 | text-align center
39 | width 100%
40 | margin-left 0.5em
41 | h1.site-name
42 | width 100%
43 | if ShowCustomFont
44 | font-family font-custom-family
45 | font-size font-size+100
46 | line-height line-height
47 | font-smoothing()
48 | @media mini
49 | font-size font-size+140
50 | @media tablet
51 | font-size font-size+180
52 | else
53 | font-family font-default
54 | font-size font-size+60
55 | line-height line-height+0.4
56 | font-weight normal
57 | @media mini
58 | font-size font-size+90
59 | @media tablet
60 | font-size font-size+120
61 | h2.blog-motto
62 | font-size 0.7em
63 | font-weight normal
64 | @media mini
65 | font-size font-size
66 | @media tablet
67 | font-size font-size+10
68 |
69 | .navbar
70 | position absolute
71 | width 2em
72 | right 0em
73 | top 1em
74 | padding 0.5em
75 | @media tablet
76 | display none
77 |
78 | .navbutton::before
79 | font-family font-icon-family
80 | font-smoothing()
81 | content "\f0c9"
82 |
83 | .navmobile::before
84 | padding-left 1em
85 |
86 | header nav
87 | float left
88 | width 100%
89 | @media phone
90 | width 50%
91 | @media tablet
92 | float right
93 | width auto
94 | margin-top 1em
95 | max-height none
96 | font-size font-size+12.5
97 | padding-top 0.5em
98 | max-height 0.01em
99 | transition max-height 1s ease-out
100 | ul
101 | @media tablet
102 | float right
103 | ul li
104 | @media tablet
105 | float left
106 | ul li a
107 | padding 0.2em 0 0.2em 1em
108 | @media tablet
109 | padding 0.2em 1.5em
110 | &:hover
111 | background saturate(darken(color-theme, 25%), 10%)
112 | color color-font-nav
113 |
114 | .shownav
115 | max-height 40em
116 |
117 | .search
118 | padding 0.1em 0 0 1em
119 | input
120 | line-height line-height+0.2
121 | border 1px solid color-white
122 | color color-white
123 | background transparent
124 | width 80%
125 | padding-left 0.5em
126 | @media tablet
127 | width 8em
128 | transition .5s width
129 | &:focus
130 | width 15em
131 | label
132 | display none
133 |
--------------------------------------------------------------------------------
/source/img/logo.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
6 |
18 |
22 |
26 |
29 |
32 |
33 |
--------------------------------------------------------------------------------
/layout/_partial/head.ejs:
--------------------------------------------------------------------------------
1 |
2 | lang="<%= config.language %>"<% } %>>
3 |
4 |
5 |
6 |
7 |
8 | <%
9 | var title = page.title;
10 |
11 | if (is_archive()){
12 | title = 'Archives';
13 |
14 | if (is_month()){
15 | title += ': ' + page.year + '/' + page.month;
16 | } else if (is_year()){
17 | title += ': ' + page.year;
18 | }
19 | } else if (is_category()){
20 | title = 'Category: ' + page.category;
21 | } else if (is_tag()){
22 | title = 'Tag: ' + page.tag;
23 | }
24 | %>
25 | <% if (title){ %><%= title %> | <% } %><%= config.title %>
26 |
27 | <% if (config.author){ %>
28 | <% } %>
29 | <% if (page.description){ %>
30 |
31 | <% } else if (config.description&&(!is_post())){ %>
32 |
33 | <% } else if (page.excerpt){ %>
34 |
35 | <% } else if (page.content){ %>
36 |
37 | <% } %>
38 | <% if (page.keywords){ %> <% } %>
39 | <% if (theme.author.twitter){ %>
40 |
41 |
42 |
43 | <% if (page.description){ %>
44 |
45 | <% } %>
46 | <% } %>
47 | <% if (theme.rss){ %>
48 |
49 | <% } %>
50 | <% if (theme.favicon){ %>
51 |
52 | <% } %>
53 | <% if (theme.apple_icon){ %>
54 |
55 |
56 | <% } %>
57 | <%- css('css/style') %>
58 | <% if (theme.baidu_analytics.enable){ %>
59 |
69 | <% } %>
70 |
71 |
--------------------------------------------------------------------------------
/layout/layout.ejs:
--------------------------------------------------------------------------------
1 | <% if (page.layout=='post'){ %>
2 | <%- partial('_partial/head') %>
3 |
4 |
5 | <%- partial('_partial/header') %>
6 |
7 |
8 | <%- body %>
9 | <%- partial('_partial/sidebar',{item: page,table: true}) %>
10 |
11 | <%- partial('_partial/footer') %>
12 | <%- partial('_partial/after_footer') %>
13 |
14 |
15 | <% } else if(page.layout=='page'){ %>
16 | <% if(page.source.match(/\.md$/)){ %>
17 | <%- partial('_partial/head') %>
18 |
19 |
20 | <%- partial('_partial/header') %>
21 |
22 |
23 | <%- body %>
24 |
25 | <%- partial('_partial/footer') %>
26 | <%- partial('_partial/after_footer') %>
27 |
28 |