├── .gitignore ├── layout ├── index.ejs ├── tag.ejs ├── archive.ejs ├── category.ejs ├── page.ejs ├── post.ejs ├── common │ ├── scripts.ejs │ ├── post │ │ ├── tag.ejs │ │ ├── date.ejs │ │ ├── category.ejs │ │ ├── gallery.ejs │ │ ├── title.ejs │ │ └── nav.ejs │ ├── thumbnail.ejs │ ├── footer.ejs │ ├── summary.ejs │ ├── article.ejs │ ├── sidebar.ejs │ ├── archive.ejs │ ├── content-title.ejs │ ├── header.ejs │ └── head.ejs ├── comment │ ├── youyan.ejs │ ├── scripts.ejs │ ├── index.ejs │ ├── counter.ejs │ ├── disqus.ejs │ └── duoshuo.ejs ├── widget │ ├── tag.ejs │ ├── archive.ejs │ ├── tagcloud.ejs │ ├── category.ejs │ ├── links.ejs │ └── recent_posts.ejs ├── plugin │ ├── baidu-analytics.ejs │ ├── google-analytics.ejs │ └── scripts.ejs ├── share │ ├── index.ejs │ ├── bdshare.ejs │ ├── addtoany.ejs │ ├── jiathis.ejs │ └── default.ejs ├── search │ ├── baidu.ejs │ ├── index.ejs │ ├── insight.ejs │ └── swiftype.ejs └── layout.ejs ├── package.json ├── source ├── css │ ├── _partial │ │ ├── comment.styl │ │ ├── assets.styl │ │ ├── header.styl │ │ ├── footer.styl │ │ ├── archive.styl │ │ ├── insight.styl │ │ └── nav.styl │ ├── images │ │ ├── s-left.png │ │ ├── logo-header.png │ │ ├── opacity-10.png │ │ ├── thumb-default.png │ │ └── thumb-default-small.png │ ├── _highlight │ │ ├── pojoaque.jpg │ │ ├── brown-papersq.png │ │ ├── school-book.png │ │ ├── index.styl │ │ ├── ascetic.styl │ │ ├── mono-blue.styl │ │ ├── androidstudio.styl │ │ ├── dark.styl │ │ ├── codepen-embed.styl │ │ ├── brown-paper.styl │ │ ├── far.styl │ │ ├── arta.styl │ │ ├── ir-black.styl │ │ ├── vs.styl │ │ ├── darkula.styl │ │ ├── color-brewer.styl │ │ ├── magula.styl │ │ ├── github-gist.styl │ │ ├── tomorrow.styl │ │ ├── school-book.styl │ │ ├── monokai.styl │ │ ├── zenburn.styl │ │ ├── highlightjs.styl │ │ ├── rainbow.styl │ │ ├── paraiso-dark.styl │ │ ├── paraiso-light.styl │ │ ├── tomorrow-night.styl │ │ ├── atelier-dune-dark.styl │ │ ├── atelier-heath-dark.styl │ │ ├── atelier-heath-light.styl │ │ ├── monokai-sublime.styl │ │ ├── atelier-forest-dark.styl │ │ ├── atelier-forest-light.styl │ │ ├── atelier-seaside-dark.styl │ │ ├── atelier-seaside-light.styl │ │ ├── kimbie.dark.styl │ │ ├── kimbie.light.styl │ │ ├── obsidian.styl │ │ ├── tomorrow-night-bright.styl │ │ ├── atelier-lakeside-dark.styl │ │ ├── tomorrow-night-eighties.styl │ │ ├── atelier-lakeside-light.styl │ │ ├── googlecode.styl │ │ ├── arduino-light.styl │ │ ├── pojoaque.styl │ │ ├── foundation.styl │ │ ├── xcode.styl │ │ ├── atelier-sulphurpool-dark.styl │ │ ├── atelier-sulphurpool-light.styl │ │ ├── hopscotch.styl │ │ ├── tomorrow-night-blue.styl │ │ ├── solarized-dark.styl │ │ ├── solarized-light.styl │ │ ├── docco.styl │ │ ├── atelier-dune-light.styl │ │ ├── github.styl │ │ ├── idea.styl │ │ ├── sunburst.styl │ │ ├── atelier-cave-dark.styl │ │ ├── atelier-cave-light.styl │ │ ├── railscasts.styl │ │ ├── atelier-estuary-dark.styl │ │ ├── atelier-estuary-light.styl │ │ ├── atelier-plateau-dark.styl │ │ ├── atelier-plateau-light.styl │ │ ├── atelier-savanna-dark.styl │ │ ├── atelier-savanna-light.styl │ │ ├── hybrid.styl │ │ ├── agate.styl │ │ └── grayscale.styl │ ├── _retina.styl │ ├── _extend.styl │ ├── _variables.styl │ └── style.styl ├── vendor │ ├── lightgallery │ │ ├── fonts │ │ │ ├── lg.eot │ │ │ ├── lg.ttf │ │ │ └── lg.woff │ │ ├── img │ │ │ ├── loading.gif │ │ │ ├── video-play.png │ │ │ ├── vimeo-play.png │ │ │ └── youtube-play.png │ │ ├── css │ │ │ ├── lg-fb-comment-box.css.map │ │ │ ├── lg-fb-comment-box.min.css │ │ │ └── lg-fb-comment-box.css │ │ └── js │ │ │ ├── lg-hash.min.js │ │ │ ├── lg-fullscreen.min.js │ │ │ ├── lg-pager.min.js │ │ │ ├── lg-hash.js │ │ │ ├── lg-autoplay.min.js │ │ │ └── lg-share.min.js │ ├── font-awesome │ │ └── fonts │ │ │ ├── FontAwesome.otf │ │ │ ├── fontawesome-webfont.eot │ │ │ ├── fontawesome-webfont.ttf │ │ │ ├── fontawesome-webfont.woff │ │ │ └── fontawesome-webfont.woff2 │ ├── titillium-web │ │ ├── fonts │ │ │ ├── 7XUFZ5tgS-tD6QamInJTcSo_WB_cotcEMUw1LsIE8mM.woff2 │ │ │ ├── 7XUFZ5tgS-tD6QamInJTcZSnX671uNZIV63UdXh3Mg0.woff2 │ │ │ ├── anMUvcNT0H1YN4FII8wpr4-67659ICLY8bMrYhtePPA.woff2 │ │ │ ├── anMUvcNT0H1YN4FII8wpr46gJz9aNFrmnwBdd69aqzY.woff2 │ │ │ ├── anMUvcNT0H1YN4FII8wpr9INifKjd1RJ3NxxEi9Cy2w.woff2 │ │ │ └── anMUvcNT0H1YN4FII8wpr_SNRT0fZ5CX-AqRkMYgJJo.woff2 │ │ └── styles.css │ └── source-code-pro │ │ ├── fonts │ │ ├── mrl8jkM18OlOQN8JLgasD9V_2ngZ8dMf8fLgjYEouxg.woff2 │ │ └── mrl8jkM18OlOQN8JLgasDy2Q8seG17bfDXYR_jUsrzg.woff2 │ │ └── styles.css └── js │ └── main.js ├── scripts ├── excerpt.js ├── thumbnail.js └── meta.js ├── languages ├── zh-CN.yml ├── en.yml ├── id.yml ├── pt-BR.yml ├── vi.yml ├── ca.yml ├── fr.yml ├── hu.yml ├── ru.yml ├── tr.yml └── es.yml ├── .github └── ISSUE_TEMPLATE.md ├── _config.yml.example └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | _config.yml -------------------------------------------------------------------------------- /layout/index.ejs: -------------------------------------------------------------------------------- 1 | <%- partial('common/archive') %> -------------------------------------------------------------------------------- /layout/tag.ejs: -------------------------------------------------------------------------------- 1 | <%- partial('common/archive') %> -------------------------------------------------------------------------------- /layout/archive.ejs: -------------------------------------------------------------------------------- 1 | <%- partial('common/archive') %> -------------------------------------------------------------------------------- /layout/category.ejs: -------------------------------------------------------------------------------- 1 | <%- partial('common/archive') %> 2 | -------------------------------------------------------------------------------- /layout/page.ejs: -------------------------------------------------------------------------------- 1 | <%- partial('common/article', { post: page }) %> -------------------------------------------------------------------------------- /layout/post.ejs: -------------------------------------------------------------------------------- 1 | <%- partial('common/article', { post: page }) %> -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hexo-theme-hueman", 3 | "version": "0.2.1", 4 | "private": true 5 | } 6 | -------------------------------------------------------------------------------- /source/css/_partial/comment.styl: -------------------------------------------------------------------------------- 1 | #comments 2 | padding: 30px 30px 20px 3 | a 4 | color: color-theme 5 | -------------------------------------------------------------------------------- /source/css/images/s-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/css/images/s-left.png -------------------------------------------------------------------------------- /source/css/_highlight/pojoaque.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/css/_highlight/pojoaque.jpg -------------------------------------------------------------------------------- /source/css/images/logo-header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/css/images/logo-header.png -------------------------------------------------------------------------------- /source/css/images/opacity-10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/css/images/opacity-10.png -------------------------------------------------------------------------------- /source/css/images/thumb-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/css/images/thumb-default.png -------------------------------------------------------------------------------- /source/css/_highlight/brown-papersq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/css/_highlight/brown-papersq.png -------------------------------------------------------------------------------- /source/css/_highlight/school-book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/css/_highlight/school-book.png -------------------------------------------------------------------------------- /source/vendor/lightgallery/fonts/lg.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/vendor/lightgallery/fonts/lg.eot -------------------------------------------------------------------------------- /source/vendor/lightgallery/fonts/lg.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/vendor/lightgallery/fonts/lg.ttf -------------------------------------------------------------------------------- /source/css/images/thumb-default-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/css/images/thumb-default-small.png -------------------------------------------------------------------------------- /source/vendor/lightgallery/fonts/lg.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/vendor/lightgallery/fonts/lg.woff -------------------------------------------------------------------------------- /source/vendor/lightgallery/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/vendor/lightgallery/img/loading.gif -------------------------------------------------------------------------------- /layout/common/scripts.ejs: -------------------------------------------------------------------------------- 1 | <%- partial('comment/scripts') %> 2 | <%- partial('plugin/scripts') %> 3 | 4 | 5 | <%- js('js/main') %> 6 | -------------------------------------------------------------------------------- /source/vendor/lightgallery/img/video-play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/vendor/lightgallery/img/video-play.png -------------------------------------------------------------------------------- /source/vendor/lightgallery/img/vimeo-play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/vendor/lightgallery/img/vimeo-play.png -------------------------------------------------------------------------------- /source/vendor/font-awesome/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/vendor/font-awesome/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /source/vendor/lightgallery/img/youtube-play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/vendor/lightgallery/img/youtube-play.png -------------------------------------------------------------------------------- /source/vendor/font-awesome/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/vendor/font-awesome/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /source/vendor/font-awesome/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/vendor/font-awesome/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /source/css/_partial/assets.styl: -------------------------------------------------------------------------------- 1 | i.icon 2 | display: inline-block 3 | font-style: normal 4 | text-align: center 5 | &:before 6 | transition: 0.2s ease-in 7 | -------------------------------------------------------------------------------- /source/vendor/font-awesome/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/vendor/font-awesome/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /source/vendor/font-awesome/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/vendor/font-awesome/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /layout/common/post/tag.ejs: -------------------------------------------------------------------------------- 1 | <% if (post.tags && post.tags.length) { %> 2 | <%- list_tags(post.tags, { 3 | show_count: false, 4 | class: 'article-tag' 5 | }) %> 6 | <% } %> -------------------------------------------------------------------------------- /layout/common/post/date.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /source/vendor/titillium-web/fonts/7XUFZ5tgS-tD6QamInJTcSo_WB_cotcEMUw1LsIE8mM.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/vendor/titillium-web/fonts/7XUFZ5tgS-tD6QamInJTcSo_WB_cotcEMUw1LsIE8mM.woff2 -------------------------------------------------------------------------------- /source/vendor/titillium-web/fonts/7XUFZ5tgS-tD6QamInJTcZSnX671uNZIV63UdXh3Mg0.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/vendor/titillium-web/fonts/7XUFZ5tgS-tD6QamInJTcZSnX671uNZIV63UdXh3Mg0.woff2 -------------------------------------------------------------------------------- /source/vendor/titillium-web/fonts/anMUvcNT0H1YN4FII8wpr4-67659ICLY8bMrYhtePPA.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/vendor/titillium-web/fonts/anMUvcNT0H1YN4FII8wpr4-67659ICLY8bMrYhtePPA.woff2 -------------------------------------------------------------------------------- /source/vendor/titillium-web/fonts/anMUvcNT0H1YN4FII8wpr46gJz9aNFrmnwBdd69aqzY.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/vendor/titillium-web/fonts/anMUvcNT0H1YN4FII8wpr46gJz9aNFrmnwBdd69aqzY.woff2 -------------------------------------------------------------------------------- /source/vendor/titillium-web/fonts/anMUvcNT0H1YN4FII8wpr9INifKjd1RJ3NxxEi9Cy2w.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/vendor/titillium-web/fonts/anMUvcNT0H1YN4FII8wpr9INifKjd1RJ3NxxEi9Cy2w.woff2 -------------------------------------------------------------------------------- /source/vendor/titillium-web/fonts/anMUvcNT0H1YN4FII8wpr_SNRT0fZ5CX-AqRkMYgJJo.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/vendor/titillium-web/fonts/anMUvcNT0H1YN4FII8wpr_SNRT0fZ5CX-AqRkMYgJJo.woff2 -------------------------------------------------------------------------------- /source/vendor/source-code-pro/fonts/mrl8jkM18OlOQN8JLgasD9V_2ngZ8dMf8fLgjYEouxg.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/vendor/source-code-pro/fonts/mrl8jkM18OlOQN8JLgasD9V_2ngZ8dMf8fLgjYEouxg.woff2 -------------------------------------------------------------------------------- /source/vendor/source-code-pro/fonts/mrl8jkM18OlOQN8JLgasDy2Q8seG17bfDXYR_jUsrzg.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laubrence/hexo-theme-hueman/master/source/vendor/source-code-pro/fonts/mrl8jkM18OlOQN8JLgasDy2Q8seG17bfDXYR_jUsrzg.woff2 -------------------------------------------------------------------------------- /layout/comment/youyan.ejs: -------------------------------------------------------------------------------- 1 | <% if (typeof(script) !== 'undefined' && script) { %> 2 | 3 | <% } else { %> 4 |
5 | <% } %> -------------------------------------------------------------------------------- /layout/widget/tag.ejs: -------------------------------------------------------------------------------- 1 | <% if (site.tags.length) { %> 2 |
3 |

<%= __('sidebar.tags') %>

4 |
5 | <%- list_tags() %> 6 |
7 |
8 | <% } %> 9 | -------------------------------------------------------------------------------- /layout/widget/archive.ejs: -------------------------------------------------------------------------------- 1 | <% if (site.posts.length) { %> 2 |
3 |

<%= __('sidebar.archives') %>

4 |
5 | <%- list_archives() %> 6 |
7 |
8 | <% } %> 9 | -------------------------------------------------------------------------------- /layout/widget/tagcloud.ejs: -------------------------------------------------------------------------------- 1 | <% if (site.tags.length) { %> 2 |
3 |

<%= __('sidebar.tag_cloud') %>

4 |
5 | <%- tagcloud() %> 6 |
7 |
8 | <% } %> 9 | -------------------------------------------------------------------------------- /layout/widget/category.ejs: -------------------------------------------------------------------------------- 1 | <% if (site.categories.length) { %> 2 |
3 |

<%= __('sidebar.categories') %>

4 |
5 | <%- list_categories() %> 6 |
7 |
8 | <% } %> 9 | -------------------------------------------------------------------------------- /layout/comment/scripts.ejs: -------------------------------------------------------------------------------- 1 | <% if (theme.comment.disqus) { %> 2 | <%- partial('comment/disqus', { script: true }) %> 3 | <% } else if (theme.comment.duoshuo) { %> 4 | <%- partial('comment/duoshuo', { script: true }) %> 5 | <% } else if (theme.comment.youyan) { %> 6 | <%- partial('comment/youyan', { script: true }) %> 7 | <% } %> -------------------------------------------------------------------------------- /layout/common/post/category.ejs: -------------------------------------------------------------------------------- 1 | <% if (post.categories && post.categories.length) { %> 2 |
3 | <%- list_categories(post.categories, { 4 | style: 'none', 5 | separator: '►', 6 | show_count: false, 7 | class: 'article-category', 8 | }) %> 9 |
10 | <% } %> -------------------------------------------------------------------------------- /layout/plugin/baidu-analytics.ejs: -------------------------------------------------------------------------------- 1 | 10 | -------------------------------------------------------------------------------- /layout/common/post/gallery.ejs: -------------------------------------------------------------------------------- 1 | <% if (post.photos && post.photos.length) { %> 2 |
3 | <% post.photos.forEach(function(photo, i) { %> 4 | 5 | 6 | 7 | <% }) %> 8 |
9 | <% } %> -------------------------------------------------------------------------------- /source/css/_retina.styl: -------------------------------------------------------------------------------- 1 | @media only screen and (-webkit-min-device-pixel-ratio: 1.5), 2 | only screen and (min--moz-device-pixel-ratio: 1.5), 3 | only screen and (min-device-pixel-ratio: 1.5) 4 | .article-entry .img-wrap 5 | &:before 6 | background: url(preloader-2x) center center no-repeat, rgba(0,0,0,0.9) 7 | background-size: 24px 24px -------------------------------------------------------------------------------- /layout/comment/index.ejs: -------------------------------------------------------------------------------- 1 | <% if (post.comments) { %> 2 |
3 | <% if (theme.comment.disqus) { %> 4 | <%- partial('comment/disqus') %> 5 | <% } else if (theme.comment.duoshuo) { %> 6 | <%- partial('comment/duoshuo') %> 7 | <% } else if (theme.comment.youyan) { %> 8 | <%- partial('comment/youyan') %> 9 | <% } %> 10 |
11 | <% } %> -------------------------------------------------------------------------------- /layout/share/index.ejs: -------------------------------------------------------------------------------- 1 | <% if (theme.share === 'jiathis') { %> 2 | <%- partial('jiathis') %> 3 | <% } %> 4 | <% if (theme.share === 'bdshare') { %> 5 | <%- partial('bdshare') %> 6 | <% } %> 7 | <% if (theme.share === 'addtoany') { %> 8 | <%- partial('addtoany') %> 9 | <% } %> 10 | <% if (!theme.share || theme.share === 'default') { %> 11 | <%- partial('default', { post: post }) %> 12 | <% } %> -------------------------------------------------------------------------------- /scripts/excerpt.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Excerpt Helper 3 | * @description Get the excerpt from a post 4 | * @example 5 | * <%- excerpt(post) %> 6 | */ 7 | hexo.extend.helper.register('excerpt', function (post) { 8 | var excerpt; 9 | if (post.excerpt) { 10 | excerpt = post.excerpt.replace(/\<[^\>]+\>/g, ''); 11 | } else { 12 | excerpt = post.content.replace(/\<[^\>]+\>/g, '').substring(0, 200); 13 | } 14 | return excerpt; 15 | }); -------------------------------------------------------------------------------- /layout/comment/counter.ejs: -------------------------------------------------------------------------------- 1 | <% if (post.comments) { %> 2 | 3 | 4 | <% if (theme.comment.disqus) { %> 5 | 0 6 | <% } else if (theme.comment.duoshuo) { %> 7 | 0 8 | <% } %> 9 | 10 | <% } %> -------------------------------------------------------------------------------- /layout/plugin/google-analytics.ejs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layout/widget/links.ejs: -------------------------------------------------------------------------------- 1 | <% if (site.posts.length) { %> 2 |
3 |

<%= __('sidebar.links') %>

4 |
5 | 12 |
13 |
14 | <% } %> 15 | -------------------------------------------------------------------------------- /scripts/thumbnail.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Thumbnail Helper 3 | * @description Get the thumbnail url from a post 4 | * @example 5 | * <%- thumbnail(post) %> 6 | */ 7 | hexo.extend.helper.register('thumbnail', function (post) { 8 | var url = post.thumbnail || ''; 9 | if (!url) { 10 | var imgPattern = /\/ig; 11 | var result = imgPattern.exec(post.content); 12 | if (result && result.length > 1) { 13 | url = result[1]; 14 | } 15 | } 16 | return url; 17 | }); -------------------------------------------------------------------------------- /layout/common/thumbnail.ejs: -------------------------------------------------------------------------------- 1 | 2 | <% var thumbnailUrl = thumbnail(post) %> 3 | <% if (thumbnailUrl) { %> 4 | 5 | <% } else { %> 6 | 7 | <% } %> 8 | <% if (typeof(counter) !== 'undefined' && counter) { %> 9 | <%- partial('comment/counter') %> 10 | <% } %> 11 | 12 | -------------------------------------------------------------------------------- /layout/search/baidu.ejs: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | -------------------------------------------------------------------------------- /layout/common/post/title.ejs: -------------------------------------------------------------------------------- 1 | <% if (post.link) { %> 2 |

3 | 4 |

5 | <% } else if (post.title) { %> 6 | <% if (typeof(linkable) !== 'undefined' && linkable) { %> 7 |

8 | <%= post.title %> 9 |

10 | <% } else { %> 11 |

12 | <%= post.title %> 13 |

14 | <% } %> 15 | <% } %> -------------------------------------------------------------------------------- /source/css/_highlight/index.styl: -------------------------------------------------------------------------------- 1 | .highlight 2 | margin: 0px 3 | display: block 4 | overflow-x: auto 5 | padding: 15px 20px 6 | font-size: font-size 7 | font-family: font-mono 8 | line-height: font-size * line-height 9 | table 10 | margin: 0 11 | width: auto 12 | td 13 | border: none 14 | td.code 15 | padding-right: 20px 16 | .gutter 17 | pre 18 | color: #666 19 | text-align: right 20 | padding-right: 20px 21 | 22 | .article-entry 23 | .highlight 24 | margin: 1.6em 0 25 | .line 26 | height: 1.6em 27 | 28 | @import "_highlight/" + highlight -------------------------------------------------------------------------------- /source/vendor/lightgallery/css/lg-fb-comment-box.css.map: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "mappings": "AAGI,kCAAa;EACT,aAAa,EAAE,gBAAgB;AAEnC,kCAAa;EACT,MAAM,EAAE,IAAI;EACZ,UAAU,EAAE,IAAI;EAChB,QAAQ,EAAE,QAAQ;EAClB,KAAK,EAAE,CAAC;EACR,GAAG,EAAE,CAAC;EACN,KAAK,EAAE,KAAK;EACZ,OAAO,EAAE,KAAK;EACd,UAAU,EAAE,6DAA6D;EACzE,mDAAmB;IACf,gBAAgB,EAAE,IAAI;IACtB,2EAAyB;MACrB,UAAU,EAAE,6DAA6D;AAIrF,iCAAY;EACR,KAAK,EAAE,KAAK;EACZ,KAAK,EAAE,IAAI;AAEf,0CAAqB;EACjB,KAAK,EAAE,KAAK;AAEhB,8BAAS;EACL,gBAAgB,EAAE,IAAI;EAElB,uDAAY;IACR,gBAAgB,EAAE,IAAI;AAIlC,kCAAa;EACT,UAAU,EAAE,kEAAkE;AAGlF,kCAAa;EACT,OAAO,EAAE,CAAC;EACV,QAAQ,EAAE,MAAM", 4 | "sources": ["../sass/lg-fb-comment-box.scss"], 5 | "names": [], 6 | "file": "lg-fb-comment-box.css" 7 | } 8 | -------------------------------------------------------------------------------- /layout/common/footer.ejs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /languages/zh-CN.yml: -------------------------------------------------------------------------------- 1 | index: 2 | home: '主页' 3 | about: '关于' 4 | search: '搜索' 5 | archive: '归档' 6 | category: '分类:' 7 | uncategorized: '未分类' 8 | tag: '标签:' 9 | nav: 10 | current_page: 11 | other: '第 %d 页,' 12 | total_page: 13 | other: '共 %d 页' 14 | sidebar: 15 | follow: '关注我 ' 16 | newer: '下一篇' 17 | older: '上一篇' 18 | recents: '最新文章' 19 | archives: '归档' 20 | categories: '分类' 21 | links: '链接' 22 | tags: '标签' 23 | tag_cloud: '标签云' 24 | article: 25 | comments: '评论' 26 | share: '分享到' 27 | insight: 28 | hint: '想要查找什么...' 29 | posts: '文章' 30 | pages: '页面' 31 | categories: '分类' 32 | tags: '标签' 33 | untitled: '(未命名)' 34 | -------------------------------------------------------------------------------- /source/css/_partial/header.styl: -------------------------------------------------------------------------------- 1 | #header 2 | background: color-header-background 3 | padding-bottom: nav-height 4 | position: relative 5 | 6 | #header-outer 7 | height: 100% 8 | position: relative 9 | 10 | #header-inner 11 | position: relative 12 | 13 | #header-title 14 | clearfix() 15 | text-align: center 16 | padding: 30px 30px 17 | .logo-wrap, .subtitle-wrap 18 | float: left 19 | .subtitle-wrap 20 | padding: 10px 0px 0px 21 | margin-left: 20px 22 | .subtitle 23 | font-size: 16px 24 | font-style: italic 25 | line-height: logo-height + 10 26 | color: color-nav-foreground 27 | text-shadow: 0 1px rgba(0, 0, 0, 0.2) 28 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | Please make sure these boxes are checked before submitting your issue. Thank you! 2 | 3 | - [ ] I have setuped and configurated the blog according to [Hexo official documentation](https://hexo.io/); 4 | - [ ] I have read the [Theme Wiki](https://github.com/ppoffice/hexo-theme-hueman/wiki) carefully and created my own configuration file(_config.yml); 5 | - [ ] I have looked up the [Issues](https://github.com/ppoffice/hexo-theme-hueman/issues) and found no duplicate issues. 6 | 7 | 请在发布新Issue之前确保你已经进行了如下工作,谢谢! 8 | 9 | - [ ] 我已经按照[Hexo官方文档](https://hexo.io/)中的步骤安装与配置了Hexo; 10 | - [ ] 我已经仔细地阅读了[主题Wiki](https://github.com/ppoffice/hexo-theme-hueman/wiki)并创建了自己的配置文件(_config.yml); 11 | - [ ] 我已经搜索了[Issues](https://github.com/ppoffice/hexo-theme-hueman/issues),并且没有找到类似的问题。 12 | -------------------------------------------------------------------------------- /layout/search/index.ejs: -------------------------------------------------------------------------------- 1 |
2 | <% if (theme.search.insight) { %> 3 |
4 | 5 | 6 |
7 | <%- partial('search/insight') %> 8 | <% } else if (theme.search.swiftype) { %> 9 |
10 | 11 |
12 | <%- partial('search/swiftype') %> 13 | <% } else if (theme.search.baidu) { %> 14 | <%- partial('search/baidu') %> 15 | <% } else { %> 16 | <%- search_form({text: __('index.search')}) %> 17 | <% } %> 18 |
-------------------------------------------------------------------------------- /languages/en.yml: -------------------------------------------------------------------------------- 1 | index: 2 | home: 'Home' 3 | about: 'About' 4 | search: 'Search' 5 | archive: 'Archive' 6 | category: 'Category' 7 | uncategorized: 'uncategorized' 8 | tag: 'Tag' 9 | nav: 10 | current_page: 11 | other: 'Page %d ' 12 | total_page: 13 | other: 'of %d' 14 | sidebar: 15 | follow: 'follow' 16 | newer: 'newer' 17 | older: 'older' 18 | recents: 'recents' 19 | archives: 'archives' 20 | categories: 'categories' 21 | links: 'links' 22 | tags: 'tags' 23 | tag_cloud: 'tag cloud' 24 | article: 25 | comments: 'Comments' 26 | share: 'Share' 27 | insight: 28 | hint: 'Type something...' 29 | posts: 'Posts' 30 | pages: 'Pages' 31 | categories: 'Categories' 32 | tags: 'Tags' 33 | untitled: '(Untitled)' 34 | -------------------------------------------------------------------------------- /source/css/_highlight/ascetic.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Original style from softwaremaniacs.org (c) Ivan Sagalaev 4 | 5 | */ 6 | 7 | .highlight 8 | color: black 9 | background: white 10 | .code 11 | .string, 12 | .variable, 13 | .template-variable, 14 | .symbol, 15 | .bullet, 16 | .section, 17 | .addition, 18 | .attribute, 19 | .link 20 | color: #888 21 | 22 | .comment, 23 | .quote, 24 | .meta, 25 | .deletion 26 | color: #ccc 27 | 28 | .keyword, 29 | .selector-tag, 30 | .section, 31 | .name, 32 | .type, 33 | .strong 34 | font-weight: bold 35 | 36 | .emphasis 37 | font-style: italic 38 | -------------------------------------------------------------------------------- /source/vendor/source-code-pro/styles.css: -------------------------------------------------------------------------------- 1 | /* latin-ext */ 2 | @font-face { 3 | font-family: 'Source Code Pro'; 4 | font-style: normal; 5 | font-weight: 400; 6 | src: local('Source Code Pro'), local('SourceCodePro-Regular'), url(fonts/mrl8jkM18OlOQN8JLgasDy2Q8seG17bfDXYR_jUsrzg.woff2) format('woff2'); 7 | unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; 8 | } 9 | /* latin */ 10 | @font-face { 11 | font-family: 'Source Code Pro'; 12 | font-style: normal; 13 | font-weight: 400; 14 | src: local('Source Code Pro'), local('SourceCodePro-Regular'), url(fonts/mrl8jkM18OlOQN8JLgasD9V_2ngZ8dMf8fLgjYEouxg.woff2) format('woff2'); 15 | unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; 16 | } -------------------------------------------------------------------------------- /languages/id.yml: -------------------------------------------------------------------------------- 1 | index: 2 | home: 'Beranda' 3 | about: 'Tentang' 4 | search: 'Cari' 5 | archive: 'Arsip' 6 | category: 'Kategori' 7 | uncategorized: 'belum terkategori' 8 | tag: 'Tag' 9 | nav: 10 | current_page: 11 | other: 'Halaman %d ' 12 | total_page: 13 | other: 'dari %d' 14 | sidebar: 15 | follow: 'ikuti' 16 | newer: 'lebih baru' 17 | older: 'lebih lawas' 18 | recents: 'terbaru' 19 | archives: 'arsip' 20 | categories: 'kategori' 21 | links: 'tautan' 22 | tags: 'tag' 23 | tag_cloud: 'awan tag' 24 | article: 25 | comments: 'Komentar' 26 | share: 'Bagikan' 27 | insight: 28 | hint: 'Type something...' 29 | posts: 'pos' 30 | pages: 'Pages' 31 | categories: 'kategori' 32 | tags: 'tag' 33 | untitled: '(Untitled)' 34 | -------------------------------------------------------------------------------- /languages/pt-BR.yml: -------------------------------------------------------------------------------- 1 | index: 2 | home: 'Home' 3 | about: 'Sobre' 4 | search: 'Busca' 5 | archive: 'Arquivo' 6 | category: 'Categoria' 7 | uncategorized: 'sem categoria' 8 | tag: 'Tag' 9 | nav: 10 | current_page: 11 | other: 'Página %d ' 12 | total_page: 13 | other: 'de %d' 14 | sidebar: 15 | follow: 'seguir' 16 | newer: 'novos' 17 | older: 'antigos' 18 | recents: 'recentes' 19 | archives: 'arquivos' 20 | categories: 'categorias' 21 | links: 'links' 22 | tags: 'tags' 23 | tag_cloud: 'tag cloud' 24 | article: 25 | comments: 'Comentários' 26 | share: 'Compartilhar' 27 | insight: 28 | hint: 'Type something...' 29 | posts: 'Posts' 30 | pages: 'Pages' 31 | categories: 'categorias' 32 | tags: 'tags' 33 | untitled: '(Untitled)' 34 | -------------------------------------------------------------------------------- /languages/vi.yml: -------------------------------------------------------------------------------- 1 | index: 2 | home: 'Trang chủ' 3 | about: 'Giới thiệu' 4 | search: 'Tìm kiếm' 5 | archive: 'Lưu trữ' 6 | category: 'Chuyên mục' 7 | uncategorized: 'Chưa phân loại' 8 | tag: 'Thẻ' 9 | nav: 10 | current_page: 11 | other: '%d ' 12 | total_page: 13 | other: '/ %d' 14 | sidebar: 15 | follow: 'Theo dõi' 16 | newer: 'Mới hơn' 17 | older: 'Cũ hơn' 18 | recents: 'Bài viết mới' 19 | archives: 'Lưu trữ' 20 | categories: 'Chuyên mục' 21 | links: 'Liên kết' 22 | tags: 'Thẻ' 23 | tag_cloud: 'Mây thẻ' 24 | article: 25 | comments: 'Bình luận' 26 | share: 'Chia sẻ' 27 | insight: 28 | hint: 'Gõ gì đó...' 29 | posts: 'Bài viết' 30 | pages: 'Trang' 31 | categories: 'Chuyên mục' 32 | tags: 'Thẻ' 33 | untitled: '(Không đề)' 34 | -------------------------------------------------------------------------------- /source/vendor/lightgallery/css/lg-fb-comment-box.min.css: -------------------------------------------------------------------------------- 1 | .lg-outer.fb-comments .fb-comments{height:100%;overflow-y:auto;position:absolute;right:0;top:0;width:420px;z-index:99999;background:url(../img/loading.gif) center center no-repeat #fff}.lg-outer.fb-comments .fb-comments.fb_iframe_widget{background-image:none}.lg-outer.fb-comments .fb-comments.fb_iframe_widget.fb_iframe_widget_loader{background:url(../img/loading.gif) center center no-repeat #fff}.lg-outer.fb-comments .lg-toolbar{right:420px;width:auto}.lg-outer.fb-comments .lg-actions .lg-next{right:420px}.lg-outer.fb-comments .lg-item,.lg-outer.fb-comments .lg-item.lg-complete .lg-img-wrap{background-image:none}.lg-outer.fb-comments .lg-img-wrap{padding-right:400px!important;background:url(../img/loading.gif) center center no-repeat}.lg-outer.fb-comments .lg-sub-html{padding:0;position:static} -------------------------------------------------------------------------------- /languages/ca.yml: -------------------------------------------------------------------------------- 1 | index: 2 | home: 'Inici' 3 | about: 'Quant a' 4 | search: 'Cercar' 5 | archive: 'Arxiu' 6 | category: 'Categoria' 7 | uncategorized: 'Sense categoria' 8 | tag: 'Etiqueta' 9 | nav: 10 | current_page: 11 | other: 'Pàgina %d ' 12 | total_page: 13 | other: 'de %d' 14 | sidebar: 15 | follow: 'seguir' 16 | newer: 'més nou' 17 | older: 'antic' 18 | recents: 'recents' 19 | archives: 'arxius' 20 | categories: 'categories' 21 | links: 'links' 22 | tags: 'etiquetes' 23 | tag_cloud: 'etiqueta cloud' 24 | article: 25 | comments: 'Comentaris' 26 | share: 'Compartir' 27 | insight: 28 | hint: 'Type something...' 29 | posts: 'Posts' 30 | pages: 'Pages' 31 | categories: 'categories' 32 | tags: 'etiquetes' 33 | untitled: '(Untitled)' 34 | -------------------------------------------------------------------------------- /languages/fr.yml: -------------------------------------------------------------------------------- 1 | index: 2 | home: 'Accueil' 3 | about: 'À propos' 4 | search: 'Rechercher' 5 | archive: 'Archive' 6 | category: 'Categorie' 7 | uncategorized: 'Aucune catégorie' 8 | tag: 'Tag' 9 | nav: 10 | current_page: 11 | other: 'Page %d ' 12 | total_page: 13 | other: 'sur %d' 14 | sidebar: 15 | follow: 'suivre' 16 | newer: '+ récent' 17 | older: '- récent' 18 | recents: 'récents' 19 | archives: 'archives' 20 | categories: 'catégories' 21 | links: 'liens' 22 | tags: 'tags' 23 | tag_cloud: 'tag cloud' 24 | article: 25 | comments: 'Commentaires' 26 | share: 'Partager' 27 | insight: 28 | hint: 'Type something...' 29 | posts: 'Articles' 30 | pages: 'Pages' 31 | categories: 'Catégories' 32 | tags: 'Tags' 33 | untitled: '(Untitled)' 34 | -------------------------------------------------------------------------------- /languages/hu.yml: -------------------------------------------------------------------------------- 1 | index: 2 | home: 'Főoldal' 3 | about: 'Elérhetőség' 4 | search: 'Keresés' 5 | archive: 'Archívum' 6 | category: 'Kategória' 7 | uncategorized: 'kategorizálatlan' 8 | tag: 'Címke' 9 | nav: 10 | current_page: 11 | other: '%d. oldal ' 12 | total_page: 13 | other: '/ %d' 14 | sidebar: 15 | follow: 'követés' 16 | newer: 'következő' 17 | older: 'előző' 18 | recents: 'friss' 19 | archives: 'archívum' 20 | categories: 'kategórák' 21 | links: 'linkek' 22 | tags: 'címkék' 23 | tag_cloud: 'címkefelhő' 24 | article: 25 | comments: 'Komment' 26 | share: 'Megosztás' 27 | insight: 28 | hint: 'Keresendő szöveg...' 29 | posts: 'Bejegyzések' 30 | pages: 'Oldalak' 31 | categories: 'Kategóriák' 32 | tags: 'Címkék' 33 | untitled: '(Névtelen)' 34 | -------------------------------------------------------------------------------- /languages/ru.yml: -------------------------------------------------------------------------------- 1 | index: 2 | home: 'Главная' 3 | about: 'О сайте' 4 | search: 'Поиск' 5 | archive: 'архив' 6 | category: 'категории : ' 7 | uncategorized: 'без категории' 8 | tag: 'тэг : ' 9 | nav: 10 | current_page: 11 | other: 'Страница %d ' 12 | total_page: 13 | other: 'из %d' 14 | sidebar: 15 | follow: 'Подписаться' 16 | newer: 'новые' 17 | older: 'старые' 18 | recents: 'недавние' 19 | archives: 'архивы' 20 | categories: 'Категории' 21 | links: 'ссылки' 22 | tags: 'Тэги' 23 | tag_cloud: 'Облако тэгов' 24 | article: 25 | comments: 'Комментарии' 26 | share: 'Поделиться' 27 | insight: 28 | hint: 'Введите что-нибудь...' 29 | posts: 'посты' 30 | pages: 'страницы' 31 | categories: 'категории' 32 | tags: 'теги' 33 | untitled: '(Без названия)' 34 | -------------------------------------------------------------------------------- /languages/tr.yml: -------------------------------------------------------------------------------- 1 | index: 2 | home: 'Anasayfa' 3 | about: 'Hakkında' 4 | search: 'Ara' 5 | archive: 'Arşiv' 6 | category: 'Kategori' 7 | uncategorized: 'Kategorisiz' 8 | tag: 'Etiket' 9 | nav: 10 | current_page: 11 | other: 'Sayfa %d ' 12 | total_page: 13 | other: 'toplam %d' 14 | sidebar: 15 | follow: 'Takip Et' 16 | newer: 'sonraki' 17 | older: 'önceki' 18 | recents: 'son yazılar' 19 | archives: 'arşiv' 20 | categories: 'kategoriler' 21 | links: 'linkler' 22 | tags: 'etiketler' 23 | tag_cloud: 'etiket bulutu' 24 | article: 25 | comments: 'Yorumlar' 26 | share: 'Paylaş' 27 | insight: 28 | hint: 'Bir şeyler yaz...' 29 | posts: 'Gönderiler' 30 | pages: 'Sayfalar' 31 | categories: 'Kategoriler' 32 | tags: 'Etiketler' 33 | untitled: '(Başlıksız)' 34 | -------------------------------------------------------------------------------- /languages/es.yml: -------------------------------------------------------------------------------- 1 | index: 2 | home: 'Inicio' 3 | about: 'Acerca de' 4 | search: 'Buscar' 5 | archive: 'Archivo' 6 | category: 'Categoria' 7 | uncategorized: 'Sin categoría' 8 | tag: 'Etiqueta' 9 | nav: 10 | current_page: 11 | other: 'Página %d ' 12 | total_page: 13 | other: 'de %d' 14 | sidebar: 15 | follow: 'seguir' 16 | newer: 'más nuevo' 17 | older: 'antiguo' 18 | recents: 'recientes' 19 | archives: 'archivos' 20 | categories: 'categorias' 21 | links: 'links' 22 | tags: 'etiquetas' 23 | tag_cloud: 'etiqueta cloud' 24 | article: 25 | comments: 'Comentarios' 26 | share: 'Compartir' 27 | insight: 28 | hint: 'Type something...' 29 | posts: 'Entradas' 30 | pages: 'Pages' 31 | categories: 'Categorias' 32 | tags: 'Etiquetas' 33 | untitled: '(Untitled)' 34 | -------------------------------------------------------------------------------- /layout/layout.ejs: -------------------------------------------------------------------------------- 1 | <%- partial('common/head') %> 2 | 3 |
4 | <%- partial('common/header', null, {cache: !config.relative_link}) %> 5 |
6 |
7 |
8 |
9 | <%- partial('common/content-title') %> 10 |
11 | <%- body %> 12 |
13 |
14 | <%- partial('common/sidebar') %> 15 |
16 |
17 |
18 | <%- partial('common/footer', null, {cache: !config.relative_link}) %> 19 | <%- partial('common/scripts') %> 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /source/css/_partial/footer.styl: -------------------------------------------------------------------------------- 1 | #footer 2 | background: color-footer-background 3 | margin-top: 60px 4 | color: color-grey 5 | line-height: line-height 6 | a 7 | color: #ccc 8 | text-decoration: none 9 | &:hover 10 | color: #fff 11 | .credit 12 | padding: 30px 13 | #back-to-top 14 | background: color-background 15 | color: #777 16 | overflow: hidden 17 | text-align: center 18 | width: 60px 19 | height: 30px 20 | display: block 21 | margin: 0 auto -30px 22 | border-radius: 0 0 3px 3px 23 | box-shadow: 0 1px 1px rgba(0,0,0,0.1) 24 | &:hover 25 | color: #444 26 | i 27 | font-size: 38px 28 | line-height: 22px 29 | .logo 30 | width: logo-width * 0.8 31 | height: logo-height * 0.8 32 | background-size: logo-width * 0.8 logo-height * 0.8 33 | -------------------------------------------------------------------------------- /layout/comment/disqus.ejs: -------------------------------------------------------------------------------- 1 | <% if (typeof(script) !== 'undefined' && script) { %> 2 | 18 | <% } else { %> 19 |
20 | 21 |
22 | <% } %> -------------------------------------------------------------------------------- /layout/common/summary.ejs: -------------------------------------------------------------------------------- 1 |
2 |
3 | <% if (theme.customize.thumbnail === true) { %> 4 | <%- partial('common/thumbnail', { counter: true }) %> 5 | <% } %> 6 | 18 | <%- partial('post/title', { class_name: 'article-title', linkable: true }) %> 19 |

20 | <%- excerpt(post) %> 21 |

22 |
23 |
-------------------------------------------------------------------------------- /layout/common/post/nav.ejs: -------------------------------------------------------------------------------- 1 | <% if (post.prev || post.next) { %> 2 | 24 | <% } %> -------------------------------------------------------------------------------- /source/css/_highlight/mono-blue.styl: -------------------------------------------------------------------------------- 1 | /* 2 | Five-color theme from a single blue hue. 3 | */ 4 | .highlight 5 | color: #00193a 6 | background: #eaeef3 7 | .code 8 | .keyword, 9 | .selector-tag, 10 | .title, 11 | .section, 12 | .doctag, 13 | .name, 14 | .strong 15 | font-weight: bold 16 | 17 | .comment 18 | color: #738191 19 | 20 | .string, 21 | .title, 22 | .section, 23 | .built_in, 24 | .literal, 25 | .type, 26 | .addition, 27 | .tag, 28 | .quote, 29 | .name, 30 | .selector-id, 31 | .selector-class 32 | color: #0048ab 33 | 34 | .meta, 35 | .subst, 36 | .symbol, 37 | .regexp, 38 | .attribute, 39 | .deletion, 40 | .variable, 41 | .template-variable, 42 | .link, 43 | .bullet 44 | color: #4c81c9 45 | 46 | .emphasis 47 | font-style: italic 48 | -------------------------------------------------------------------------------- /layout/common/article.ejs: -------------------------------------------------------------------------------- 1 |
2 |
3 | <% if (post.link || post.title) { %> 4 |
5 | <%- partial('post/title', { class_name: 'article-title' }) %> 6 |
7 | <% } %> 8 | <% if (post.layout != 'page') { %> 9 |
10 | <%- partial('post/date', { class_name: 'article-date', date_format: null }) %> 11 | <%- partial('post/tag') %> 12 |
13 | <% } %> 14 | <%- partial('post/gallery') %> 15 |
16 | <%- post.content %> 17 |
18 |
19 | <%- partial('share/index', { post: post }) %> 20 |
21 |
22 |
23 | <%- partial('comment/index') %> -------------------------------------------------------------------------------- /layout/plugin/scripts.ejs: -------------------------------------------------------------------------------- 1 | <% if (typeof(isHead) !== 'undefined' && isHead) { %> 2 | <% if (theme.plugins.lightgallery) { %> 3 | <%- css('vendor/lightgallery/css/lightgallery.min') %> 4 | <% } %> 5 | <% if (theme.plugins.google_analytics) { %> 6 | <%- partial('plugin/google-analytics') %> 7 | <% } %> 8 | <% if (theme.plugins.baidu_analytics) { %> 9 | <%- partial('plugin/baidu-analytics') %> 10 | <% } %> 11 | <% } else { %> 12 | <% if (theme.plugins.lightgallery) { %> 13 | <%- js('vendor/lightgallery/js/lightgallery.min') %> 14 | <%- js('vendor/lightgallery/js/lg-thumbnail.min') %> 15 | <%- js('vendor/lightgallery/js/lg-pager.min') %> 16 | <%- js('vendor/lightgallery/js/lg-autoplay.min') %> 17 | <%- js('vendor/lightgallery/js/lg-fullscreen.min') %> 18 | <%- js('vendor/lightgallery/js/lg-zoom.min') %> 19 | <%- js('vendor/lightgallery/js/lg-hash.min') %> 20 | <%- js('vendor/lightgallery/js/lg-share.min') %> 21 | <%- js('vendor/lightgallery/js/lg-video.min') %> 22 | <% } %> 23 | <% } %> -------------------------------------------------------------------------------- /layout/common/sidebar.ejs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/css/_highlight/androidstudio.styl: -------------------------------------------------------------------------------- 1 | /* 2 | Date: 24 Fev 2015 3 | Author: Pedro Oliveira 4 | */ 5 | 6 | .highlight 7 | color: #a9b7c6 8 | background: #282b2e 9 | .code 10 | .number, 11 | .literal, 12 | .symbol, 13 | .bullet 14 | color: #6897BB 15 | 16 | .keyword, 17 | .selector-tag, 18 | .deletion 19 | color: #cc7832 20 | 21 | .variable, 22 | .template-variable, 23 | .link 24 | color: #629755 25 | 26 | .comment, 27 | .quote 28 | color: #808080 29 | 30 | .meta 31 | color: #bbb529 32 | 33 | .string, 34 | .attribute, 35 | .addition 36 | color: #6A8759 37 | 38 | .section, 39 | .title, 40 | .type 41 | color: #ffc66d 42 | 43 | .name, 44 | .selector-id, 45 | .selector-class 46 | color: #e8bf6a 47 | 48 | .emphasis 49 | font-style: italic 50 | 51 | .strong 52 | font-weight: bold 53 | -------------------------------------------------------------------------------- /source/css/_highlight/dark.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Dark style from softwaremaniacs.org (c) Ivan Sagalaev 4 | 5 | */ 6 | 7 | .highlight 8 | color: #ddd 9 | background: #444 10 | .code 11 | .keyword, 12 | .selector-tag, 13 | .literal, 14 | .section, 15 | .link 16 | color: white 17 | 18 | .subst 19 | color: #ddd 20 | 21 | .string, 22 | .title, 23 | .name, 24 | .type, 25 | .attribute, 26 | .symbol, 27 | .bullet, 28 | .built_in, 29 | .addition, 30 | .variable, 31 | .template-tag, 32 | .template-variable 33 | color: #d88 34 | 35 | .comment, 36 | .quote, 37 | .deletion, 38 | .meta 39 | color: #777 40 | 41 | .keyword, 42 | .selector-tag, 43 | .literal, 44 | .title, 45 | .section, 46 | .doctag, 47 | .type, 48 | .name, 49 | .strong 50 | font-weight: bold 51 | 52 | .emphasis 53 | font-style: italic 54 | -------------------------------------------------------------------------------- /layout/search/insight.ejs: -------------------------------------------------------------------------------- 1 | 13 | 29 | <%- js('js/insight') %> -------------------------------------------------------------------------------- /source/css/_highlight/codepen-embed.styl: -------------------------------------------------------------------------------- 1 | /* 2 | codepen.io Embed Theme 3 | Author: Justin Perry 4 | Original theme - https://github.com/chriskempson/tomorrow-theme 5 | */ 6 | 7 | .highlight 8 | color: #fff 9 | background: #222 10 | .code 11 | .comment, 12 | .quote 13 | color: #777 14 | 15 | .variable, 16 | .template-variable, 17 | .tag, 18 | .regexp, 19 | .meta, 20 | .number, 21 | .built_in, 22 | .builtin-name, 23 | .literal, 24 | .params, 25 | .symbol, 26 | .bullet, 27 | .link, 28 | .deletion 29 | color: #ab875d 30 | 31 | .section, 32 | .title, 33 | .name, 34 | .selector-id, 35 | .selector-class, 36 | .type, 37 | .attribute 38 | color: #9b869b 39 | 40 | .string, 41 | .keyword, 42 | .selector-tag, 43 | .addition 44 | color: #8f9c6c 45 | 46 | .emphasis 47 | font-style: italic 48 | 49 | .strong 50 | font-weight: bold 51 | -------------------------------------------------------------------------------- /source/css/_highlight/brown-paper.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Brown Paper style from goldblog.com.ua (c) Zaripov Yura 4 | 5 | */ 6 | 7 | .highlight 8 | color: #363c69 9 | background:#b7a68e url(./brown-papersq.png) 10 | .code 11 | .keyword, 12 | .selector-tag, 13 | .literal 14 | color:#005599 15 | font-weight:bold 16 | 17 | .highlight, 18 | .subst 19 | color: #363c69 20 | 21 | .string, 22 | .title, 23 | .section, 24 | .type, 25 | .attribute, 26 | .symbol, 27 | .bullet, 28 | .built_in, 29 | .addition, 30 | .variable, 31 | .template-tag, 32 | .template-variable, 33 | .link, 34 | .name 35 | color: #2c009f 36 | 37 | .comment, 38 | .quote, 39 | .meta, 40 | .deletion 41 | color: #802022 42 | 43 | .keyword, 44 | .selector-tag, 45 | .literal, 46 | .doctag, 47 | .title, 48 | .section, 49 | .type, 50 | .name, 51 | .strong 52 | font-weight: bold 53 | 54 | .emphasis 55 | font-style: italic 56 | -------------------------------------------------------------------------------- /source/css/_highlight/far.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | FAR Style (c) MajestiC 4 | 5 | */ 6 | 7 | .highlight 8 | color: #0ff 9 | background: #000080 10 | .code 11 | .subst 12 | color: #0ff 13 | 14 | .string, 15 | .attribute, 16 | .symbol, 17 | .bullet, 18 | .built_in, 19 | .builtin-name, 20 | .template-tag, 21 | .template-variable, 22 | .addition 23 | color: #ff0 24 | 25 | .keyword, 26 | .selector-tag, 27 | .section, 28 | .type, 29 | .name, 30 | .selector-id, 31 | .selector-class, 32 | .variable 33 | color: #fff 34 | 35 | .comment, 36 | .quote, 37 | .doctag, 38 | .deletion 39 | color: #888 40 | 41 | .number, 42 | .regexp, 43 | .literal, 44 | .link 45 | color: #0f0 46 | 47 | .meta 48 | color: #008080 49 | 50 | .keyword, 51 | .selector-tag, 52 | .title, 53 | .section, 54 | .name, 55 | .strong 56 | font-weight: bold 57 | 58 | .emphasis 59 | font-style: italic 60 | -------------------------------------------------------------------------------- /source/css/_highlight/arta.styl: -------------------------------------------------------------------------------- 1 | /* 2 | Date: 17.V.2011 3 | Author: pumbur 4 | */ 5 | 6 | .highlight 7 | color: #aaa 8 | background: #222 9 | .code 10 | .subst 11 | color: #aaa 12 | 13 | .section 14 | color: #fff 15 | 16 | .comment, 17 | .quote, 18 | .meta 19 | color: #444 20 | 21 | .string, 22 | .symbol, 23 | .bullet, 24 | .regexp 25 | color: #ffcc33 26 | 27 | .number, 28 | .addition 29 | color: #00cc66 30 | 31 | .built_in, 32 | .builtin-name, 33 | .literal, 34 | .type, 35 | .template-variable, 36 | .attribute, 37 | .link 38 | color: #32aaee 39 | 40 | .keyword, 41 | .selector-tag, 42 | .name, 43 | .selector-id, 44 | .selector-class 45 | color: #6644aa 46 | 47 | .title, 48 | .variable, 49 | .deletion, 50 | .template-tag 51 | color: #bb1166 52 | 53 | .section, 54 | .doctag, 55 | .strong 56 | font-weight: bold 57 | 58 | .emphasis 59 | font-style: italic 60 | -------------------------------------------------------------------------------- /layout/search/swiftype.ejs: -------------------------------------------------------------------------------- 1 | 9 | -------------------------------------------------------------------------------- /source/vendor/lightgallery/css/lg-fb-comment-box.css: -------------------------------------------------------------------------------- 1 | .lg-outer.fb-comments .lg-img-wrap { 2 | padding-right: 400px !important; } 3 | .lg-outer.fb-comments .fb-comments { 4 | height: 100%; 5 | overflow-y: auto; 6 | position: absolute; 7 | right: 0; 8 | top: 0; 9 | width: 420px; 10 | z-index: 99999; 11 | background: #fff url("../img/loading.gif") no-repeat scroll center center; } 12 | .lg-outer.fb-comments .fb-comments.fb_iframe_widget { 13 | background-image: none; } 14 | .lg-outer.fb-comments .fb-comments.fb_iframe_widget.fb_iframe_widget_loader { 15 | background: #fff url("../img/loading.gif") no-repeat scroll center center; } 16 | .lg-outer.fb-comments .lg-toolbar { 17 | right: 420px; 18 | width: auto; } 19 | .lg-outer.fb-comments .lg-actions .lg-next { 20 | right: 420px; } 21 | .lg-outer.fb-comments .lg-item { 22 | background-image: none; } 23 | .lg-outer.fb-comments .lg-item.lg-complete .lg-img-wrap { 24 | background-image: none; } 25 | .lg-outer.fb-comments .lg-img-wrap { 26 | background: url(../img/loading.gif) no-repeat scroll center center transparent; } 27 | .lg-outer.fb-comments .lg-sub-html { 28 | padding: 0; 29 | position: static; } 30 | 31 | /*# sourceMappingURL=lg-fb-comment-box.css.map */ 32 | -------------------------------------------------------------------------------- /source/css/_highlight/ir-black.styl: -------------------------------------------------------------------------------- 1 | /* 2 | IR_Black style (c) Vasily Mikhailitchenko 3 | */ 4 | 5 | .highlight 6 | color: #f8f8f8 7 | background: #000 8 | .code 9 | .comment, 10 | .quote, 11 | .meta 12 | color: #7c7c7c 13 | 14 | .keyword, 15 | .selector-tag, 16 | .tag, 17 | .name 18 | color: #96cbfe 19 | 20 | .attribute, 21 | .selector-id 22 | color: #ffffb6 23 | 24 | .string, 25 | .selector-attr, 26 | .selector-pseudo, 27 | .addition 28 | color: #a8ff60 29 | 30 | .subst 31 | color: #daefa3 32 | 33 | .regexp, 34 | .link 35 | color: #e9c062 36 | 37 | .title, 38 | .section, 39 | .type, 40 | .doctag 41 | color: #ffffb6 42 | 43 | .symbol, 44 | .bullet, 45 | .variable, 46 | .template-variable, 47 | .literal 48 | color: #c6c5fe 49 | 50 | .number, 51 | .deletion 52 | color:#ff73fd 53 | 54 | .emphasis 55 | font-style: italic 56 | 57 | .strong 58 | font-weight: bold 59 | -------------------------------------------------------------------------------- /source/css/_highlight/vs.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Visual Studio-like style based on original C# coloring by Jason Diamond 4 | 5 | */ 6 | .highlight 7 | display: block 8 | overflow-x: auto 9 | padding: 0.5em 10 | background: white 11 | color: black 12 | .code 13 | .comment, 14 | .quote, 15 | .variable 16 | color: #008000 17 | 18 | .keyword, 19 | .selector-tag, 20 | .built_in, 21 | .name, 22 | .tag 23 | color: #00f 24 | 25 | .string, 26 | .title, 27 | .section, 28 | .attribute, 29 | .literal, 30 | .template-tag, 31 | .template-variable, 32 | .type, 33 | .addition 34 | color: #a31515 35 | 36 | .deletion, 37 | .selector-attr, 38 | .selector-pseudo, 39 | .meta 40 | color: #2b91af 41 | 42 | .doctag 43 | color: #808080 44 | 45 | .attr 46 | color: #f00 47 | 48 | .symbol, 49 | .bullet, 50 | .link 51 | color: #00b0e8 52 | 53 | 54 | .emphasis 55 | font-style: italic 56 | 57 | .strong 58 | font-weight: bold 59 | -------------------------------------------------------------------------------- /source/css/_highlight/darkula.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Darkula color scheme from the JetBrains family of IDEs 4 | 5 | */ 6 | 7 | 8 | .highlight 9 | color: #bababa 10 | background: #2b2b2b 11 | .code 12 | .strong, 13 | .emphasis 14 | color: #a8a8a2 15 | 16 | .bullet, 17 | .quote, 18 | .link, 19 | .number, 20 | .regexp, 21 | .literal 22 | color: #6896ba 23 | 24 | .code, 25 | .selector-class 26 | color: #a6e22e 27 | 28 | .emphasis 29 | font-style: italic 30 | 31 | .keyword, 32 | .selector-tag, 33 | .section, 34 | .attribute, 35 | .name, 36 | .variable 37 | color: #cb7832 38 | 39 | .params 40 | color: #b9b9b9 41 | 42 | .string, 43 | .subst, 44 | .type, 45 | .built_in, 46 | .builtin-name, 47 | .symbol, 48 | .selector-id, 49 | .selector-attr, 50 | .selector-pseudo, 51 | .template-tag, 52 | .template-variable, 53 | .addition 54 | color: #e0c46c 55 | 56 | .comment, 57 | .deletion, 58 | .meta 59 | color: #7f7f7f 60 | -------------------------------------------------------------------------------- /source/css/_highlight/color-brewer.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Colorbrewer theme 4 | Original: https://github.com/mbostock/colorbrewer-theme (c) Mike Bostock 5 | Ported by Fabrício Tavares de Oliveira 6 | 7 | */ 8 | 9 | .highlight 10 | color: #000 11 | background: #fff 12 | .code 13 | .subst 14 | color: #000 15 | 16 | .string, 17 | .meta, 18 | .symbol, 19 | .template-tag, 20 | .template-variable, 21 | .addition 22 | color: #756bb1 23 | 24 | .comment, 25 | .quote 26 | color: #636363 27 | 28 | .number, 29 | .regexp, 30 | .literal, 31 | .bullet, 32 | .link 33 | color: #31a354 34 | 35 | .deletion, 36 | .variable 37 | color: #88f 38 | 39 | 40 | 41 | .keyword, 42 | .selector-tag, 43 | .title, 44 | .section, 45 | .built_in, 46 | .doctag, 47 | .type, 48 | .tag, 49 | .name, 50 | .selector-id, 51 | .selector-class, 52 | .strong 53 | color: #3182bd 54 | 55 | .emphasis 56 | font-style: italic 57 | 58 | .attribute 59 | color: #e6550d 60 | -------------------------------------------------------------------------------- /layout/common/archive.ejs: -------------------------------------------------------------------------------- 1 | <% var last, postCount = 0; %> 2 | <% page.posts.each(function(post, i) { %> 3 | <% var year = post.date.year(); %> 4 | <% if (last != year) { %> 5 | <% if (last != null) { %> 6 | 7 | <% } %> 8 | <% last = year; postCount = 0;%> 9 |
10 |
11 | <%= year %> 12 |
13 |
14 | <% } %> 15 | <% postCount++; %> 16 | <% if (postCount % 2 == 1) { %> 17 |
18 | <% } %> 19 | <%- partial('summary', { post: post }) %> 20 | <% if (postCount == page.posts.length || postCount % 2 == 0) { %> 21 |
22 | <% } %> 23 | <% }) %> 24 | <% if (page.posts.length) { %> 25 |
26 | <% } %> 27 | <% if (page.total > 1) { %> 28 | 32 | <% } %> 33 | -------------------------------------------------------------------------------- /scripts/meta.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Meta Helper 3 | * @description Generate meta tags for HTML header 4 | * @example 5 | * <%- meta(post) %> 6 | */ 7 | function trim (str) { 8 | return str.trim().replace(/^"(.*)"$/, '$1').replace(/^'(.*)'$/, '$1'); 9 | } 10 | 11 | function split (str, sep) { 12 | var result = []; 13 | var matched = null; 14 | while (matched = sep.exec(str)) { 15 | result.push(matched[0]); 16 | } 17 | return result; 18 | } 19 | 20 | hexo.extend.helper.register('meta', function (post) { 21 | var metas = post.meta || []; 22 | var output = ''; 23 | var metaDOMArray = metas.map(function (meta) { 24 | var entities = split(meta, /(?:[^\\;]+|\\.)+/g); 25 | var entityArray = entities.map(function (entity) { 26 | var keyValue = split(entity, /(?:[^\\=]+|\\.)+/g); 27 | if (keyValue.length < 2) { 28 | return null; 29 | } 30 | var key = trim(keyValue[0]); 31 | var value = trim(keyValue[1]); 32 | return key + '="' + value + '"'; 33 | }).filter(function (entity) { 34 | return entity; 35 | }); 36 | return ''; 37 | }); 38 | return metaDOMArray.join('\n'); 39 | }); -------------------------------------------------------------------------------- /source/css/_highlight/magula.styl: -------------------------------------------------------------------------------- 1 | /* 2 | Description: Magula style for highligh.js 3 | Author: Ruslan Keba 4 | Website: http://rukeba.com/ 5 | Version: 1.0 6 | Date: 2009-01-03 7 | Music: Aphex Twin / Xtal 8 | */ 9 | 10 | .highlight 11 | background-color: #f4f4f4 12 | .code 13 | .highlight, 14 | .subst 15 | color: black 16 | 17 | .string, 18 | .title, 19 | .symbol, 20 | .bullet, 21 | .attribute, 22 | .addition, 23 | .variable, 24 | .template-tag, 25 | .template-variable 26 | color: #050 27 | 28 | .comment, 29 | .quote 30 | color: #777 31 | 32 | .number, 33 | .regexp, 34 | .literal, 35 | .type, 36 | .link 37 | color: #800 38 | 39 | .deletion, 40 | .meta 41 | color: #00e 42 | 43 | .keyword, 44 | .selector-tag, 45 | .doctag, 46 | .title, 47 | .section, 48 | .built_in, 49 | .tag, 50 | .name 51 | font-weight: bold 52 | color: navy 53 | 54 | .emphasis 55 | font-style: italic 56 | 57 | .strong 58 | font-weight: bold 59 | -------------------------------------------------------------------------------- /source/css/_highlight/github-gist.styl: -------------------------------------------------------------------------------- 1 | /** 2 | * GitHub Gist Theme 3 | * Author : Louis Barranqueiro - https://github.com/LouisBarranqueiro 4 | */ 5 | 6 | .highlight 7 | padding: 0.5em 8 | color: #333333 9 | .code 10 | .comment, 11 | .meta 12 | color: #969896 13 | 14 | .string, 15 | .variable, 16 | .template-variable, 17 | .strong, 18 | .emphasis, 19 | .quote 20 | color: #df5000 21 | 22 | .keyword, 23 | .selector-tag, 24 | .type 25 | color: #a71d5d 26 | 27 | .literal, 28 | .symbol, 29 | .bullet, 30 | .attribute 31 | color: #0086b3 32 | 33 | .section, 34 | .name 35 | color: #63a35c 36 | 37 | .tag 38 | color: #333333 39 | 40 | .title, 41 | .attr, 42 | .selector-id, 43 | .selector-class, 44 | .selector-attr, 45 | .selector-pseudo 46 | color: #795da3 47 | 48 | .addition 49 | color: #55a532 50 | background-color: #eaffea 51 | 52 | .deletion 53 | color: #bd2c00 54 | background-color: #ffecec 55 | 56 | .link 57 | text-decoration: underline 58 | -------------------------------------------------------------------------------- /source/css/_highlight/tomorrow.styl: -------------------------------------------------------------------------------- 1 | .highlight 2 | color: #4d4d4c 3 | background: white 4 | .code 5 | /* Tomorrow Comment */ 6 | .comment, 7 | .quote 8 | color: #8e908c 9 | 10 | /* Tomorrow Red */ 11 | .variable, 12 | .template-variable, 13 | .tag, 14 | .name, 15 | .selector-id, 16 | .selector-class, 17 | .regexp, 18 | .deletion 19 | color: #c82829 20 | 21 | /* Tomorrow Orange */ 22 | .number, 23 | .built_in, 24 | .builtin-name, 25 | .literal, 26 | .type, 27 | .params, 28 | .meta, 29 | .link 30 | color: #f5871f 31 | 32 | /* Tomorrow Yellow */ 33 | .attribute 34 | color: #eab700 35 | 36 | /* Tomorrow Green */ 37 | .string, 38 | .symbol, 39 | .bullet, 40 | .addition 41 | color: #718c00 42 | 43 | /* Tomorrow Blue */ 44 | .title, 45 | .section 46 | color: #4271ae 47 | 48 | /* Tomorrow Purple */ 49 | .keyword, 50 | .selector-tag 51 | color: #8959a8 52 | .emphasis 53 | font-style: italic 54 | 55 | .strong 56 | font-weight: bold -------------------------------------------------------------------------------- /source/css/_highlight/school-book.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | School Book style from goldblog.com.ua (c) Zaripov Yura 4 | 5 | */ 6 | 7 | .highlight 8 | background:#f6f6ae url(./school-book.png) 9 | border-top: solid 2px #d2e8b9 10 | border-bottom: solid 1px #d2e8b9 11 | .code 12 | .keyword, 13 | .selector-tag, 14 | .literal 15 | color:#005599 16 | font-weight:bold 17 | 18 | .highlight, 19 | .subst 20 | color: #3e5915 21 | 22 | .string, 23 | .title, 24 | .section, 25 | .type, 26 | .symbol, 27 | .bullet, 28 | .attribute, 29 | .built_in, 30 | .builtin-name, 31 | .addition, 32 | .variable, 33 | .template-tag, 34 | .template-variable, 35 | .link 36 | color: #2c009f 37 | 38 | .comment, 39 | .quote, 40 | .deletion, 41 | .meta 42 | color: #e60415 43 | 44 | .keyword, 45 | .selector-tag, 46 | .literal, 47 | .doctag, 48 | .title, 49 | .section, 50 | .type, 51 | .name, 52 | .selector-id, 53 | .strong 54 | font-weight: bold 55 | 56 | .emphasis 57 | font-style: italic 58 | -------------------------------------------------------------------------------- /source/css/_highlight/monokai.styl: -------------------------------------------------------------------------------- 1 | /* 2 | Monokai style - ported by Luigi Maselli - http://grigio.org 3 | */ 4 | 5 | .highlight 6 | color: #ddd 7 | background: #272822 8 | .code 9 | .tag, 10 | .keyword, 11 | .selector-tag, 12 | .literal, 13 | .strong, 14 | .name 15 | color: #f92672 16 | 17 | .code 18 | color: #66d9ef 19 | 20 | .class .title 21 | color: white 22 | 23 | .attribute, 24 | .symbol, 25 | .regexp, 26 | .link 27 | color: #bf79db 28 | 29 | .string, 30 | .bullet, 31 | .subst, 32 | .title, 33 | .section, 34 | .emphasis, 35 | .type, 36 | .built_in, 37 | .builtin-name, 38 | .selector-attr, 39 | .selector-pseudo, 40 | .addition, 41 | .variable, 42 | .template-tag, 43 | .template-variable 44 | color: #a6e22e 45 | 46 | .comment, 47 | .quote, 48 | .deletion, 49 | .meta 50 | color: #75715e 51 | 52 | .keyword, 53 | .selector-tag, 54 | .literal, 55 | .doctag, 56 | .title, 57 | .section, 58 | .type, 59 | .selector-id 60 | font-weight: bold -------------------------------------------------------------------------------- /source/css/_highlight/zenburn.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Zenburn style from voldmar.ru (c) Vladimir Epifanov 4 | based on dark.css by Ivan Sagalaev 5 | 6 | */ 7 | 8 | .highlight 9 | color: #dcdcdc 10 | background: #3f3f3f 11 | .code 12 | .keyword, 13 | .selector-tag, 14 | .tag 15 | color: #e3ceab 16 | 17 | .template-tag 18 | color: #dcdcdc 19 | 20 | .number 21 | color: #8cd0d3 22 | 23 | .variable, 24 | .template-variable, 25 | .attribute 26 | color: #efdcbc 27 | 28 | .literal 29 | color: #efefaf 30 | 31 | .subst 32 | color: #8f8f8f 33 | 34 | .title, 35 | .name, 36 | .selector-id, 37 | .selector-class, 38 | .section, 39 | .type 40 | color: #efef8f 41 | 42 | .symbol, 43 | .bullet, 44 | .link 45 | color: #dca3a3 46 | 47 | .deletion, 48 | .string, 49 | .built_in, 50 | .builtin-name 51 | color: #cc9393 52 | 53 | .addition, 54 | .comment, 55 | .quote, 56 | .meta 57 | color: #7f9f7f 58 | 59 | 60 | .emphasis 61 | font-style: italic 62 | 63 | .strong 64 | font-weight: bold 65 | -------------------------------------------------------------------------------- /source/css/_highlight/highlightjs.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Original highlight.js style (c) Ivan Sagalaev 4 | 5 | */ 6 | 7 | .highlight 8 | color: #444 9 | background: #F0F0F0 10 | .code 11 | .subst 12 | color: #444 13 | 14 | .keyword, 15 | .attribute, 16 | .selector-tag, 17 | .meta-keyword, 18 | .doctag, 19 | .name 20 | font-weight: bold 21 | 22 | .built_in, 23 | .literal, 24 | .bullet, 25 | .code, 26 | .addition 27 | color: #1F811F 28 | 29 | .regexp, 30 | .symbol, 31 | .variable, 32 | .template-variable, 33 | .link, 34 | .selector-attr, 35 | .selector-pseudo 36 | color: #BC6060 37 | 38 | .type, 39 | .string, 40 | .number, 41 | .selector-id, 42 | .selector-class, 43 | .quote, 44 | .template-tag, 45 | .deletion 46 | color: #880000 47 | 48 | .title, 49 | .section 50 | color: #880000 51 | font-weight: bold 52 | 53 | .comment 54 | color: #888888 55 | 56 | .meta 57 | color: #2B6EA1 58 | 59 | .emphasis 60 | font-style: italic 61 | 62 | .strong 63 | font-weight: bold 64 | -------------------------------------------------------------------------------- /source/css/_extend.styl: -------------------------------------------------------------------------------- 1 | $block-caption 2 | text-decoration: none 3 | text-transform: uppercase 4 | color: color-default + #111 5 | line-height: 1em 6 | text-shadow: 0 1px #fff 7 | 8 | $base-style 9 | h1 10 | font-size: 2em 11 | h2 12 | font-size: 1.5em 13 | h3 14 | font-size: 1.3em 15 | h4 16 | font-size: 1.2em 17 | h5 18 | font-size: 1em 19 | h6 20 | font-size: 1em 21 | color: color-grey 22 | hr 23 | border: 1px dashed color-border 24 | strong 25 | font-weight: bold 26 | em, cite 27 | font-style: italic 28 | sup, sub 29 | font-size: 0.75em 30 | line-height: 0 31 | position: relative 32 | vertical-align: baseline 33 | sup 34 | top: -0.5em 35 | sub 36 | bottom: -0.2em 37 | small 38 | font-size: 0.85em 39 | acronym, abbr 40 | border-bottom: 1px dotted 41 | ul, ol, dl 42 | line-height: line-height 43 | ul, ol 44 | ul, ol 45 | margin-top: 0 46 | margin-bottom: 0 47 | margin-left: 20px 48 | ul 49 | list-style: disc 50 | list-style-position: inside 51 | ol 52 | list-style: decimal 53 | list-style-position: inside 54 | dt 55 | font-weight: bold 56 | list-style-position: inside 57 | -------------------------------------------------------------------------------- /layout/widget/recent_posts.ejs: -------------------------------------------------------------------------------- 1 | <% if (site.posts.length) { %> 2 |
3 |

<%= __('sidebar.recents') %>

4 |
5 |
    6 | <% site.posts.sort('date', -1).limit(5).each(function(post) { %> 7 |
  • 8 | <% if (theme.customize.thumbnail === true) { %> 9 |
    10 | <%- partial('common/thumbnail.ejs', {post: post}) %> 11 |
    12 | <% } %> 13 |
    14 |

    <%- list_categories(post.categories, {show_count: false, depth:2, class: 'article-category', style: 'none', separator: ''}) %>

    15 |

    <%= post.title %>

    16 |

    17 |
    18 |
  • 19 | <% }) %> 20 |
21 |
22 |
23 | <% } %> -------------------------------------------------------------------------------- /source/css/_highlight/rainbow.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Style with support for rainbow parens 4 | 5 | */ 6 | 7 | .highlight 8 | color: #d1d9e1 9 | background: #474949 10 | .code 11 | .comment, 12 | .quote 13 | color: #969896 14 | font-style: italic 15 | 16 | .keyword, 17 | .selector-tag, 18 | .literal, 19 | .type, 20 | .addition 21 | color: #cc99cc 22 | 23 | .number, 24 | .selector-attr, 25 | .selector-pseudo 26 | color: #f99157 27 | 28 | .string, 29 | .doctag, 30 | .regexp 31 | color: #8abeb7 32 | 33 | .title, 34 | .name, 35 | .section, 36 | .built_in 37 | color: #b5bd68 38 | 39 | .variable, 40 | .template-variable, 41 | .selector-id, 42 | .class .title 43 | color: #ffcc66 44 | 45 | .section, 46 | .name, 47 | .strong 48 | font-weight: bold 49 | 50 | .symbol, 51 | .bullet, 52 | .subst, 53 | .meta, 54 | .link 55 | color: #f99157 56 | 57 | .deletion 58 | color: #dc322f 59 | 60 | .formula 61 | background: #eee8d5 62 | 63 | .attr, 64 | .attribute 65 | color: #81a2be 66 | 67 | .emphasis 68 | font-style: italic 69 | -------------------------------------------------------------------------------- /source/css/_highlight/paraiso-dark.styl: -------------------------------------------------------------------------------- 1 | /* 2 | Paraíso (dark) 3 | Created by Jan T. Sott (http://github.com/idleberg) 4 | Inspired by the art of Rubens LP (http://www.rubenslp.com.br) 5 | */ 6 | 7 | .highlight 8 | color: #a39e9b 9 | background: #2f1e2e 10 | .code 11 | /* Paraíso Comment */ 12 | .comment, 13 | .quote 14 | color: #8d8687 15 | 16 | /* Paraíso Red */ 17 | .variable, 18 | .template-variable, 19 | .tag, 20 | .name, 21 | .selector-id, 22 | .selector-class, 23 | .regexp, 24 | .link, 25 | .meta 26 | color: #ef6155 27 | 28 | /* Paraíso Orange */ 29 | .number, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params, 35 | .deletion 36 | color: #f99b15 37 | 38 | /* Paraíso Yellow */ 39 | .title, 40 | .section, 41 | .attribute 42 | color: #fec418 43 | 44 | /* Paraíso Green */ 45 | .string, 46 | .symbol, 47 | .bullet, 48 | .addition 49 | color: #48b685 50 | 51 | /* Paraíso Purple */ 52 | .keyword, 53 | .selector-tag 54 | color: #815ba4 55 | 56 | .emphasis 57 | font-style: italic 58 | 59 | .strong 60 | font-weight: bold 61 | -------------------------------------------------------------------------------- /source/css/_highlight/paraiso-light.styl: -------------------------------------------------------------------------------- 1 | /* 2 | Paraíso (light) 3 | Created by Jan T. Sott (http://github.com/idleberg) 4 | Inspired by the art of Rubens LP (http://www.rubenslp.com.br) 5 | */ 6 | 7 | .highlight 8 | color: #4f424c 9 | background: #e7e9db 10 | .code 11 | /* Paraíso Comment */ 12 | .comment, 13 | .quote 14 | color: #776e71 15 | 16 | /* Paraíso Red */ 17 | .variable, 18 | .template-variable, 19 | .tag, 20 | .name, 21 | .selector-id, 22 | .selector-class, 23 | .regexp, 24 | .link, 25 | .meta 26 | color: #ef6155 27 | 28 | /* Paraíso Orange */ 29 | .number, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params, 35 | .deletion 36 | color: #f99b15 37 | 38 | /* Paraíso Yellow */ 39 | .title, 40 | .section, 41 | .attribute 42 | color: #fec418 43 | 44 | /* Paraíso Green */ 45 | .string, 46 | .symbol, 47 | .bullet, 48 | .addition 49 | color: #48b685 50 | 51 | /* Paraíso Purple */ 52 | .keyword, 53 | .selector-tag 54 | color: #815ba4 55 | 56 | .emphasis 57 | font-style: italic 58 | 59 | .strong 60 | font-weight: bold 61 | -------------------------------------------------------------------------------- /source/css/_highlight/tomorrow-night.styl: -------------------------------------------------------------------------------- 1 | /* Original theme - https://github.com/chriskempson/tomorrow-theme */ 2 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 3 | 4 | .highlight 5 | color: #c5c8c6 6 | background: #1d1f21 7 | .code 8 | /* Tomorrow Comment */ 9 | .comment, 10 | .quote 11 | color: #969896 12 | 13 | /* Tomorrow Red */ 14 | .variable, 15 | .template-variable, 16 | .tag, 17 | .name, 18 | .selector-id, 19 | .selector-class, 20 | .regexp, 21 | .deletion 22 | color: #cc6666 23 | 24 | /* Tomorrow Orange */ 25 | .number, 26 | .built_in, 27 | .builtin-name, 28 | .literal, 29 | .type, 30 | .params, 31 | .meta, 32 | .link 33 | color: #de935f 34 | 35 | /* Tomorrow Yellow */ 36 | .attribute 37 | color: #f0c674 38 | 39 | /* Tomorrow Green */ 40 | .string, 41 | .symbol, 42 | .bullet, 43 | .addition 44 | color: #b5bd68 45 | 46 | /* Tomorrow Blue */ 47 | .title, 48 | .section 49 | color: #81a2be 50 | 51 | /* Tomorrow Purple */ 52 | .keyword, 53 | .selector-tag 54 | color: #b294bb 55 | 56 | .emphasis 57 | font-style: italic 58 | 59 | .strong 60 | font-weight: bold -------------------------------------------------------------------------------- /layout/share/bdshare.ejs: -------------------------------------------------------------------------------- 1 | 9 | 12 | -------------------------------------------------------------------------------- /source/css/_highlight/atelier-dune-dark.styl: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Dune Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | .highlight 6 | color: #a6a28c 7 | background: #20201d 8 | .code 9 | /* Atelier-Dune Comment */ 10 | .comment, 11 | .quote 12 | color: #999580 13 | 14 | /* Atelier-Dune Red */ 15 | .variable, 16 | .template-variable, 17 | .attribute, 18 | .tag, 19 | .name, 20 | .regexp, 21 | .link, 22 | .name, 23 | .selector-id, 24 | .selector-class 25 | color: #d73737 26 | 27 | /* Atelier-Dune Orange */ 28 | .number, 29 | .meta, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params 35 | color: #b65611 36 | 37 | /* Atelier-Dune Green */ 38 | .string, 39 | .symbol, 40 | .bullet 41 | color: #60ac39 42 | 43 | /* Atelier-Dune Blue */ 44 | .title, 45 | .section 46 | color: #6684e1 47 | 48 | /* Atelier-Dune Purple */ 49 | .keyword, 50 | .selector-tag 51 | color: #b854d4 52 | 53 | .emphasis 54 | font-style: italic 55 | 56 | .strong 57 | font-weight: bold 58 | -------------------------------------------------------------------------------- /source/css/_highlight/atelier-heath-dark.styl: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Heath Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | .highlight 6 | color: #ab9bab 7 | background: #1b181b 8 | .code 9 | /* Atelier-Heath Comment */ 10 | .comment, 11 | .quote 12 | color: #9e8f9e 13 | 14 | /* Atelier-Heath Red */ 15 | .variable, 16 | .template-variable, 17 | .attribute, 18 | .tag, 19 | .name, 20 | .regexp, 21 | .link, 22 | .name, 23 | .selector-id, 24 | .selector-class 25 | color: #ca402b 26 | 27 | /* Atelier-Heath Orange */ 28 | .number, 29 | .meta, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params 35 | color: #a65926 36 | 37 | /* Atelier-Heath Green */ 38 | .string, 39 | .symbol, 40 | .bullet 41 | color: #918b3b 42 | 43 | /* Atelier-Heath Blue */ 44 | .title, 45 | .section 46 | color: #516aec 47 | 48 | /* Atelier-Heath Purple */ 49 | .keyword, 50 | .selector-tag 51 | color: #7b59c0 52 | 53 | .emphasis 54 | font-style: italic 55 | 56 | .strong 57 | font-weight: bold 58 | -------------------------------------------------------------------------------- /source/css/_highlight/atelier-heath-light.styl: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Heath Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | .highlight 6 | color: #695d69 7 | background: #f7f3f7 8 | .code 9 | /* Atelier-Heath Comment */ 10 | .comment, 11 | .quote 12 | color: #776977 13 | 14 | /* Atelier-Heath Red */ 15 | .variable, 16 | .template-variable, 17 | .attribute, 18 | .tag, 19 | .name, 20 | .regexp, 21 | .link, 22 | .name, 23 | .selector-id, 24 | .selector-class 25 | color: #ca402b 26 | 27 | /* Atelier-Heath Orange */ 28 | .number, 29 | .meta, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params 35 | color: #a65926 36 | 37 | /* Atelier-Heath Green */ 38 | .string, 39 | .symbol, 40 | .bullet 41 | color: #918b3b 42 | 43 | /* Atelier-Heath Blue */ 44 | .title, 45 | .section 46 | color: #516aec 47 | 48 | /* Atelier-Heath Purple */ 49 | .keyword, 50 | .selector-tag 51 | color: #7b59c0 52 | 53 | .emphasis 54 | font-style: italic 55 | 56 | .strong 57 | font-weight: bold 58 | -------------------------------------------------------------------------------- /source/css/_highlight/monokai-sublime.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-license.org/ 4 | 5 | */ 6 | 7 | .highlight 8 | color: #f8f8f2 9 | background: #23241f 10 | .code 11 | .highlight, 12 | .tag, 13 | .subst 14 | color: #f8f8f2 15 | 16 | .strong, 17 | .emphasis 18 | color: #a8a8a2 19 | 20 | .bullet, 21 | .quote, 22 | .number, 23 | .regexp, 24 | .literal, 25 | .link 26 | color: #ae81ff 27 | 28 | .code, 29 | .title, 30 | .section, 31 | .selector-class 32 | color: #a6e22e 33 | 34 | .strong 35 | font-weight: bold 36 | 37 | .emphasis 38 | font-style: italic 39 | 40 | .keyword, 41 | .selector-tag, 42 | .name, 43 | .attr 44 | color: #f92672 45 | 46 | .symbol, 47 | .attribute 48 | color: #66d9ef 49 | 50 | .params, 51 | .class .title 52 | color: #f8f8f2 53 | 54 | .string, 55 | .type, 56 | .built_in, 57 | .builtin-name, 58 | .selector-id, 59 | .selector-attr, 60 | .selector-pseudo, 61 | .addition, 62 | .variable, 63 | .template-variable 64 | color: #e6db74 65 | 66 | .comment, 67 | .deletion, 68 | .meta 69 | color: #75715e 70 | -------------------------------------------------------------------------------- /source/css/_highlight/atelier-forest-dark.styl: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Forest Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | .highlight 6 | color: #a8a19f 7 | background: #1b1918 8 | .code 9 | /* Atelier-Forest Comment */ 10 | .comment, 11 | .quote 12 | color: #9c9491 13 | 14 | /* Atelier-Forest Red */ 15 | .variable, 16 | .template-variable, 17 | .attribute, 18 | .tag, 19 | .name, 20 | .regexp, 21 | .link, 22 | .name, 23 | .selector-id, 24 | .selector-class 25 | color: #f22c40 26 | 27 | /* Atelier-Forest Orange */ 28 | .number, 29 | .meta, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params 35 | color: #df5320 36 | 37 | /* Atelier-Forest Green */ 38 | .string, 39 | .symbol, 40 | .bullet 41 | color: #7b9726 42 | 43 | /* Atelier-Forest Blue */ 44 | .title, 45 | .section 46 | color: #407ee7 47 | 48 | /* Atelier-Forest Purple */ 49 | .keyword, 50 | .selector-tag 51 | color: #6666ea 52 | 53 | .emphasis 54 | font-style: italic 55 | 56 | .strong 57 | font-weight: bold 58 | -------------------------------------------------------------------------------- /source/css/_highlight/atelier-forest-light.styl: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Forest Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | .highlight 6 | color: #68615e 7 | background: #f1efee 8 | .code 9 | /* Atelier-Forest Comment */ 10 | .comment, 11 | .quote 12 | color: #766e6b 13 | 14 | /* Atelier-Forest Red */ 15 | .variable, 16 | .template-variable, 17 | .attribute, 18 | .tag, 19 | .name, 20 | .regexp, 21 | .link, 22 | .name, 23 | .selector-id, 24 | .selector-class 25 | color: #f22c40 26 | 27 | /* Atelier-Forest Orange */ 28 | .number, 29 | .meta, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params 35 | color: #df5320 36 | 37 | /* Atelier-Forest Green */ 38 | .string, 39 | .symbol, 40 | .bullet 41 | color: #7b9726 42 | 43 | /* Atelier-Forest Blue */ 44 | .title, 45 | .section 46 | color: #407ee7 47 | 48 | /* Atelier-Forest Purple */ 49 | .keyword, 50 | .selector-tag 51 | color: #6666ea 52 | 53 | .emphasis 54 | font-style: italic 55 | 56 | .strong 57 | font-weight: bold 58 | -------------------------------------------------------------------------------- /source/css/_highlight/atelier-seaside-dark.styl: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Seaside Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | .highlight 6 | color: #8ca68c 7 | background: #131513 8 | .code 9 | /* Atelier-Seaside Comment */ 10 | .comment, 11 | .quote 12 | color: #809980 13 | 14 | /* Atelier-Seaside Red */ 15 | .variable, 16 | .template-variable, 17 | .attribute, 18 | .tag, 19 | .name, 20 | .regexp, 21 | .link, 22 | .name, 23 | .selector-id, 24 | .selector-class 25 | color: #e6193c 26 | 27 | /* Atelier-Seaside Orange */ 28 | .number, 29 | .meta, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params 35 | color: #87711d 36 | 37 | /* Atelier-Seaside Green */ 38 | .string, 39 | .symbol, 40 | .bullet 41 | color: #29a329 42 | 43 | /* Atelier-Seaside Blue */ 44 | .title, 45 | .section 46 | color: #3d62f5 47 | 48 | /* Atelier-Seaside Purple */ 49 | .keyword, 50 | .selector-tag 51 | color: #ad2bee 52 | 53 | .emphasis 54 | font-style: italic 55 | 56 | .strong 57 | font-weight: bold 58 | -------------------------------------------------------------------------------- /source/css/_highlight/atelier-seaside-light.styl: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Seaside Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | .highlight 6 | color: #5e6e5e 7 | background: #f4fbf4 8 | .code 9 | /* Atelier-Seaside Comment */ 10 | .comment, 11 | .quote 12 | color: #687d68 13 | 14 | /* Atelier-Seaside Red */ 15 | .variable, 16 | .template-variable, 17 | .attribute, 18 | .tag, 19 | .name, 20 | .regexp, 21 | .link, 22 | .name, 23 | .selector-id, 24 | .selector-class 25 | color: #e6193c 26 | 27 | /* Atelier-Seaside Orange */ 28 | .number, 29 | .meta, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params 35 | color: #87711d 36 | 37 | /* Atelier-Seaside Green */ 38 | .string, 39 | .symbol, 40 | .bullet 41 | color: #29a329 42 | 43 | /* Atelier-Seaside Blue */ 44 | .title, 45 | .section 46 | color: #3d62f5 47 | 48 | /* Atelier-Seaside Purple */ 49 | .keyword, 50 | .selector-tag 51 | color: #ad2bee 52 | 53 | .emphasis 54 | font-style: italic 55 | 56 | .strong 57 | font-weight: bold 58 | -------------------------------------------------------------------------------- /source/css/_highlight/kimbie.dark.styl: -------------------------------------------------------------------------------- 1 | /* 2 | Name: Kimbie (dark) 3 | Author: Jan T. Sott 4 | License: Creative Commons Attribution-ShareAlike 4.0 Unported License 5 | URL: https://github.com/idleberg/Kimbie-highlight.js 6 | */ 7 | 8 | .highlight 9 | color: #d3af86 10 | background: #221a0f 11 | .code 12 | /* Kimbie Comment */ 13 | .comment, 14 | .quote 15 | color: #d6baad 16 | 17 | /* Kimbie Red */ 18 | .variable, 19 | .template-variable, 20 | .tag, 21 | .name, 22 | .selector-id, 23 | .selector-class, 24 | .regexp, 25 | .meta 26 | color: #dc3958 27 | 28 | /* Kimbie Orange */ 29 | .number, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params, 35 | .deletion, 36 | .link 37 | color: #f79a32 38 | 39 | /* Kimbie Yellow */ 40 | .title, 41 | .section, 42 | .attribute 43 | color: #f06431 44 | 45 | /* Kimbie Green */ 46 | .string, 47 | .symbol, 48 | .bullet, 49 | .addition 50 | color: #889b4a 51 | 52 | /* Kimbie Purple */ 53 | .keyword, 54 | .selector-tag, 55 | .function 56 | color: #98676a 57 | 58 | .emphasis 59 | font-style: italic 60 | 61 | .strong 62 | font-weight: bold 63 | -------------------------------------------------------------------------------- /source/css/_highlight/kimbie.light.styl: -------------------------------------------------------------------------------- 1 | /* 2 | Name: Kimbie (light) 3 | Author: Jan T. Sott 4 | License: Creative Commons Attribution-ShareAlike 4.0 Unported License 5 | URL: https://github.com/idleberg/Kimbie-highlight.js 6 | */ 7 | 8 | .highlight 9 | color: #84613d 10 | background: #fbebd4 11 | .code 12 | /* Kimbie Comment */ 13 | .comment, 14 | .quote 15 | color: #a57a4c 16 | 17 | /* Kimbie Red */ 18 | .variable, 19 | .template-variable, 20 | .tag, 21 | .name, 22 | .selector-id, 23 | .selector-class, 24 | .regexp, 25 | .meta 26 | color: #dc3958 27 | 28 | /* Kimbie Orange */ 29 | .number, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params, 35 | .deletion, 36 | .link 37 | color: #f79a32 38 | 39 | /* Kimbie Yellow */ 40 | .title, 41 | .section, 42 | .attribute 43 | color: #f06431 44 | 45 | /* Kimbie Green */ 46 | .string, 47 | .symbol, 48 | .bullet, 49 | .addition 50 | color: #889b4a 51 | 52 | /* Kimbie Purple */ 53 | .keyword, 54 | .selector-tag, 55 | .function 56 | color: #98676a 57 | 58 | .emphasis 59 | font-style: italic 60 | 61 | .strong 62 | font-weight: bold 63 | -------------------------------------------------------------------------------- /source/css/_highlight/obsidian.styl: -------------------------------------------------------------------------------- 1 | /** 2 | * Obsidian style 3 | * ported by Alexander Marenin (http://github.com/ioncreature) 4 | */ 5 | 6 | .highlight 7 | color: #e0e2e4 8 | background: #282b2e 9 | .code 10 | .keyword, 11 | .selector-tag, 12 | .literal, 13 | .selector-id 14 | color: #93c763 15 | 16 | .number 17 | color: #ffcd22 18 | 19 | .attribute 20 | color: #668bb0 21 | 22 | .code, 23 | .class .title, 24 | .section 25 | color: white 26 | 27 | .regexp, 28 | .link 29 | color: #d39745 30 | 31 | .meta 32 | color: #557182 33 | 34 | .tag, 35 | .name, 36 | .bullet, 37 | .subst, 38 | .emphasis, 39 | .type, 40 | .built_in, 41 | .selector-attr, 42 | .selector-pseudo, 43 | .addition, 44 | .variable, 45 | .template-tag, 46 | .template-variable 47 | color: #8cbbad 48 | 49 | .string, 50 | .symbol 51 | color: #ec7600 52 | 53 | .comment, 54 | .quote, 55 | .deletion 56 | color: #818e96 57 | 58 | .selector-class 59 | color: #A082BD 60 | 61 | .keyword, 62 | .selector-tag, 63 | .literal, 64 | .doctag, 65 | .title, 66 | .section, 67 | .type, 68 | .name, 69 | .strong 70 | font-weight: bold 71 | -------------------------------------------------------------------------------- /source/css/_highlight/tomorrow-night-bright.styl: -------------------------------------------------------------------------------- 1 | /* Tomorrow Night Bright Theme */ 2 | /* Original theme - https://github.com/chriskempson/tomorrow-theme */ 3 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 4 | 5 | .highlight 6 | color: #eaeaea 7 | background: black 8 | .code 9 | /* Tomorrow Comment */ 10 | .comment, 11 | .quote 12 | color: #969896 13 | 14 | /* Tomorrow Red */ 15 | .variable, 16 | .template-variable, 17 | .tag, 18 | .name, 19 | .selector-id, 20 | .selector-class, 21 | .regexp, 22 | .deletion 23 | color: #d54e53 24 | 25 | /* Tomorrow Orange */ 26 | .number, 27 | .built_in, 28 | .builtin-name, 29 | .literal, 30 | .type, 31 | .params, 32 | .meta, 33 | .link 34 | color: #e78c45 35 | 36 | /* Tomorrow Yellow */ 37 | .attribute 38 | color: #e7c547 39 | 40 | /* Tomorrow Green */ 41 | .string, 42 | .symbol, 43 | .bullet, 44 | .addition 45 | color: #b9ca4a 46 | 47 | /* Tomorrow Blue */ 48 | .title, 49 | .section 50 | color: #7aa6da 51 | 52 | /* Tomorrow Purple */ 53 | .keyword, 54 | .selector-tag 55 | color: #c397d8 56 | 57 | .emphasis 58 | font-style: italic 59 | 60 | .strong 61 | font-weight: bold 62 | -------------------------------------------------------------------------------- /source/css/_highlight/atelier-lakeside-dark.styl: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Lakeside Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | .highlight 6 | color: #7ea2b4 7 | background: #161b1d 8 | .code 9 | /* Atelier-Lakeside Comment */ 10 | .comment, 11 | .quote 12 | color: #7195a8 13 | 14 | /* Atelier-Lakeside Red */ 15 | .variable, 16 | .template-variable, 17 | .attribute, 18 | .tag, 19 | .name, 20 | .regexp, 21 | .link, 22 | .name, 23 | .selector-id, 24 | .selector-class 25 | color: #d22d72 26 | 27 | /* Atelier-Lakeside Orange */ 28 | .number, 29 | .meta, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params 35 | color: #935c25 36 | 37 | /* Atelier-Lakeside Green */ 38 | .string, 39 | .symbol, 40 | .bullet 41 | color: #568c3b 42 | 43 | /* Atelier-Lakeside Blue */ 44 | .title, 45 | .section 46 | color: #257fad 47 | 48 | /* Atelier-Lakeside Purple */ 49 | .keyword, 50 | .selector-tag 51 | color: #6b6bb8 52 | 53 | .emphasis 54 | font-style: italic 55 | 56 | .strong 57 | font-weight: bold 58 | -------------------------------------------------------------------------------- /source/css/_highlight/tomorrow-night-eighties.styl: -------------------------------------------------------------------------------- 1 | /* Tomorrow Night Eighties Theme */ 2 | /* Original theme - https://github.com/chriskempson/tomorrow-theme */ 3 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 4 | 5 | .highlight 6 | color: #cccccc 7 | background: #2d2d2d 8 | .code 9 | /* Tomorrow Comment */ 10 | .comment, 11 | .quote 12 | color: #999999 13 | 14 | /* Tomorrow Red */ 15 | .variable, 16 | .template-variable, 17 | .tag, 18 | .name, 19 | .selector-id, 20 | .selector-class, 21 | .regexp, 22 | .deletion 23 | color: #f2777a 24 | 25 | /* Tomorrow Orange */ 26 | .number, 27 | .built_in, 28 | .builtin-name, 29 | .literal, 30 | .type, 31 | .params, 32 | .meta, 33 | .link 34 | color: #f99157 35 | 36 | /* Tomorrow Yellow */ 37 | .attribute 38 | color: #ffcc66 39 | 40 | /* Tomorrow Green */ 41 | .string, 42 | .symbol, 43 | .bullet, 44 | .addition 45 | color: #99cc99 46 | 47 | /* Tomorrow Blue */ 48 | .title, 49 | .section 50 | color: #6699cc 51 | 52 | /* Tomorrow Purple */ 53 | .keyword, 54 | .selector-tag 55 | color: #cc99cc 56 | 57 | .emphasis 58 | font-style: italic 59 | 60 | .strong 61 | font-weight: bold 62 | -------------------------------------------------------------------------------- /source/css/_highlight/atelier-lakeside-light.styl: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Lakeside Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | .highlight 6 | color: #516d7b 7 | background: #ebf8ff 8 | .code 9 | /* Atelier-Lakeside Comment */ 10 | .comment, 11 | .quote 12 | color: #5a7b8c 13 | 14 | /* Atelier-Lakeside Red */ 15 | .variable, 16 | .template-variable, 17 | .attribute, 18 | .tag, 19 | .name, 20 | .regexp, 21 | .link, 22 | .name, 23 | .selector-id, 24 | .selector-class 25 | color: #d22d72 26 | 27 | /* Atelier-Lakeside Orange */ 28 | .number, 29 | .meta, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params 35 | color: #935c25 36 | 37 | /* Atelier-Lakeside Green */ 38 | .string, 39 | .symbol, 40 | .bullet 41 | color: #568c3b 42 | 43 | /* Atelier-Lakeside Blue */ 44 | .title, 45 | .section 46 | color: #257fad 47 | 48 | /* Atelier-Lakeside Purple */ 49 | .keyword, 50 | .selector-tag 51 | color: #6b6bb8 52 | 53 | .emphasis 54 | font-style: italic 55 | 56 | .strong 57 | font-weight: bold 58 | -------------------------------------------------------------------------------- /source/css/_highlight/googlecode.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Google Code style (c) Aahan Krish 4 | 5 | */ 6 | 7 | .highlight 8 | color: black 9 | background: white 10 | .code 11 | .comment, 12 | .quote 13 | color: #800 14 | 15 | .keyword, 16 | .selector-tag, 17 | .section, 18 | .title, 19 | .name 20 | color: #008 21 | 22 | .variable, 23 | .template-variable 24 | color: #660 25 | 26 | .string, 27 | .selector-attr, 28 | .selector-pseudo, 29 | .regexp 30 | color: #080 31 | 32 | .literal, 33 | .symbol, 34 | .bullet, 35 | .meta, 36 | .number, 37 | .link 38 | color: #066 39 | 40 | .title, 41 | .doctag, 42 | .type, 43 | .attr, 44 | .built_in, 45 | .builtin-name, 46 | .params 47 | color: #606 48 | 49 | .attribute, 50 | .subst 51 | color: #000 52 | 53 | .formula 54 | background-color: #eee 55 | font-style: italic 56 | 57 | .selector-id, 58 | .selector-class 59 | color: #9B703F 60 | 61 | .addition 62 | background-color: #baeeba 63 | 64 | .deletion 65 | background-color: #ffc8bd 66 | 67 | .doctag, 68 | .strong 69 | font-weight: bold 70 | 71 | .emphasis 72 | font-style: italic 73 | -------------------------------------------------------------------------------- /source/css/_highlight/arduino-light.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Arduino® Light Theme - Stefania Mellai 4 | 5 | */ 6 | 7 | .highlight 8 | color: #434f54 9 | background: #FFFFFF 10 | .code 11 | .subst 12 | color: #434f54 13 | 14 | .keyword, 15 | .attribute, 16 | .selector-tag, 17 | .doctag, 18 | .name 19 | color: #00979D 20 | 21 | .built_in, 22 | .literal, 23 | .bullet, 24 | .code, 25 | .addition 26 | color: #D35400 27 | 28 | .regexp, 29 | .symbol, 30 | .variable, 31 | .template-variable, 32 | .link, 33 | .selector-attr, 34 | .selector-pseudo 35 | color: #00979D 36 | 37 | .type, 38 | .string, 39 | .selector-id, 40 | .selector-class, 41 | .quote, 42 | .template-tag, 43 | .deletion 44 | color: #005C5F 45 | 46 | .title, 47 | .section 48 | color: #880000 49 | font-weight: bold 50 | 51 | .comment 52 | color: rgba(149,165,166,.8) 53 | 54 | .meta-keyword 55 | color: #728E00 56 | 57 | .meta 58 | color: #728E00 59 | color: #434f54 60 | 61 | .emphasis 62 | font-style: italic 63 | 64 | .strong 65 | font-weight: bold 66 | 67 | .function 68 | color: #728E00 69 | 70 | .number 71 | color: #8A7B52 72 | -------------------------------------------------------------------------------- /source/css/_highlight/pojoaque.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Pojoaque Style by Jason Tate 4 | http://web-cms-designs.com/ftopict-10-pojoaque-style-for-highlight-js-code-highlighter.html 5 | Based on Solarized Style from http://ethanschoonover.com/solarized 6 | 7 | */ 8 | 9 | .highlight 10 | color: #dccf8f 11 | background: url(./pojoaque.jpg) repeat scroll left top #181914 12 | .code 13 | .comment, 14 | .quote 15 | color: #586e75 16 | font-style: italic 17 | 18 | .keyword, 19 | .selector-tag, 20 | .literal, 21 | .addition 22 | color: #b64926 23 | 24 | .number, 25 | .string, 26 | .doctag, 27 | .regexp 28 | color: #468966 29 | 30 | .title, 31 | .section, 32 | .built_in, 33 | .name 34 | color: #ffb03b 35 | 36 | .variable, 37 | .template-variable, 38 | .class .title, 39 | .type, 40 | .tag 41 | color: #b58900 42 | 43 | .attribute 44 | color: #b89859 45 | 46 | .symbol, 47 | .bullet, 48 | .link, 49 | .subst, 50 | .meta 51 | color: #cb4b16 52 | 53 | .deletion 54 | color: #dc322f 55 | 56 | .selector-id, 57 | .selector-class 58 | color: #d3a60c 59 | 60 | .formula 61 | background: #073642 62 | 63 | .emphasis 64 | font-style: italic 65 | 66 | .strong 67 | font-weight: bold 68 | -------------------------------------------------------------------------------- /source/css/_highlight/foundation.styl: -------------------------------------------------------------------------------- 1 | /* 2 | Description: Foundation 4 docs style for highlight.js 3 | Author: Dan Allen 4 | Website: http://foundation.zurb.com/docs/ 5 | Version: 1.0 6 | Date: 2013-04-02 7 | */ 8 | 9 | .highlight 10 | color: black 11 | background: #eee 12 | .code 13 | .link, 14 | .emphasis, 15 | .attribute, 16 | .addition 17 | color: #070 18 | 19 | .emphasis 20 | font-style: italic 21 | 22 | .strong, 23 | .string, 24 | .deletion 25 | color: #d14 26 | 27 | .strong 28 | font-weight: bold 29 | 30 | .quote, 31 | .comment 32 | color: #998 33 | font-style: italic 34 | 35 | .section, 36 | .title 37 | color: #900 38 | 39 | .class .title, 40 | .type 41 | color: #458 42 | 43 | .variable, 44 | .template-variable 45 | color: #336699 46 | 47 | .bullet 48 | color: #997700 49 | 50 | .meta 51 | color: #3344bb 52 | 53 | .code, 54 | .number, 55 | .literal, 56 | .keyword, 57 | .selector-tag 58 | color: #099 59 | 60 | .regexp 61 | background-color: #fff0ff 62 | color: #880088 63 | 64 | .symbol 65 | color: #990073 66 | 67 | .tag, 68 | .name, 69 | .selector-id, 70 | .selector-class 71 | color: #007700 72 | -------------------------------------------------------------------------------- /source/css/_highlight/xcode.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | XCode style (c) Angel Garcia 4 | 5 | */ 6 | 7 | .highlight 8 | color: black 9 | background: #fff 10 | .code 11 | .comment, 12 | .quote 13 | color: #006a00 14 | 15 | .keyword, 16 | .selector-tag, 17 | .literal 18 | color: #aa0d91 19 | 20 | .name 21 | color: #008 22 | 23 | .variable, 24 | .template-variable 25 | color: #660 26 | 27 | .string 28 | color: #c41a16 29 | 30 | .regexp, 31 | .link 32 | color: #080 33 | 34 | .title, 35 | .tag, 36 | .symbol, 37 | .bullet, 38 | .number, 39 | .meta 40 | color: #1c00cf 41 | 42 | .section, 43 | .class .title, 44 | .type, 45 | .attr, 46 | .built_in, 47 | .builtin-name, 48 | .params 49 | color: #5c2699 50 | 51 | .attribute, 52 | .subst 53 | color: #000 54 | 55 | .formula 56 | background-color: #eee 57 | font-style: italic 58 | 59 | .addition 60 | background-color: #baeeba 61 | 62 | .deletion 63 | background-color: #ffc8bd 64 | 65 | .selector-id, 66 | .selector-class 67 | color: #9b703f 68 | 69 | .doctag, 70 | .strong 71 | font-weight: bold 72 | 73 | .emphasis 74 | font-style: italic 75 | -------------------------------------------------------------------------------- /source/css/_highlight/atelier-sulphurpool-dark.styl: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Sulphurpool Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/sulphurpool) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | .highlight 6 | color: #979db4 7 | background: #202746 8 | .code 9 | /* Atelier-Sulphurpool Comment */ 10 | .comment, 11 | .quote 12 | color: #898ea4 13 | 14 | /* Atelier-Sulphurpool Red */ 15 | .variable, 16 | .template-variable, 17 | .attribute, 18 | .tag, 19 | .name, 20 | .regexp, 21 | .link, 22 | .name, 23 | .selector-id, 24 | .selector-class 25 | color: #c94922 26 | 27 | /* Atelier-Sulphurpool Orange */ 28 | .number, 29 | .meta, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params 35 | color: #c76b29 36 | 37 | /* Atelier-Sulphurpool Green */ 38 | .string, 39 | .symbol, 40 | .bullet 41 | color: #ac9739 42 | 43 | /* Atelier-Sulphurpool Blue */ 44 | .title, 45 | .section 46 | color: #3d8fd1 47 | 48 | /* Atelier-Sulphurpool Purple */ 49 | .keyword, 50 | .selector-tag 51 | color: #6679cc 52 | 53 | .emphasis 54 | font-style: italic 55 | 56 | .strong 57 | font-weight: bold 58 | -------------------------------------------------------------------------------- /source/css/_highlight/atelier-sulphurpool-light.styl: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Sulphurpool Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/sulphurpool) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | .highlight 6 | color: #5e6687 7 | background: #f5f7ff 8 | .code 9 | /* Atelier-Sulphurpool Comment */ 10 | .comment, 11 | .quote 12 | color: #6b7394 13 | 14 | /* Atelier-Sulphurpool Red */ 15 | .variable, 16 | .template-variable, 17 | .attribute, 18 | .tag, 19 | .name, 20 | .regexp, 21 | .link, 22 | .name, 23 | .selector-id, 24 | .selector-class 25 | color: #c94922 26 | 27 | /* Atelier-Sulphurpool Orange */ 28 | .number, 29 | .meta, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params 35 | color: #c76b29 36 | 37 | /* Atelier-Sulphurpool Green */ 38 | .string, 39 | .symbol, 40 | .bullet 41 | color: #ac9739 42 | 43 | /* Atelier-Sulphurpool Blue */ 44 | .title, 45 | .section 46 | color: #3d8fd1 47 | 48 | /* Atelier-Sulphurpool Purple */ 49 | .keyword, 50 | .selector-tag 51 | color: #6679cc 52 | 53 | .emphasis 54 | font-style: italic 55 | 56 | .strong 57 | font-weight: bold 58 | -------------------------------------------------------------------------------- /source/css/_highlight/hopscotch.styl: -------------------------------------------------------------------------------- 1 | /* 2 | * Hopscotch 3 | * by Jan T. Sott 4 | * https://github.com/idleberg/Hopscotch 5 | * 6 | * This work is licensed under the Creative Commons CC0 1.0 Universal License 7 | */ 8 | 9 | .highlight 10 | color: #b9b5b8 11 | background: #322931 12 | .code 13 | /* Comment */ 14 | .comment, 15 | .quote 16 | color: #989498 17 | 18 | /* Red */ 19 | .variable, 20 | .template-variable, 21 | .attribute, 22 | .tag, 23 | .name, 24 | .selector-id, 25 | .selector-class, 26 | .regexp, 27 | .link, 28 | .deletion 29 | color: #dd464c 30 | 31 | /* Orange */ 32 | .number, 33 | .built_in, 34 | .builtin-name, 35 | .literal, 36 | .type, 37 | .params 38 | color: #fd8b19 39 | 40 | /* Yellow */ 41 | .class .title 42 | color: #fdcc59 43 | 44 | /* Green */ 45 | .string, 46 | .symbol, 47 | .bullet, 48 | .addition 49 | color: #8fc13e 50 | 51 | /* Aqua */ 52 | .meta 53 | color: #149b93 54 | 55 | /* Blue */ 56 | .function, 57 | .section, 58 | .title 59 | color: #1290bf 60 | 61 | /* Purple */ 62 | .keyword, 63 | .selector-tag 64 | color: #c85e7c 65 | 66 | .emphasis 67 | font-style: italic 68 | 69 | .strong 70 | font-weight: bold 71 | -------------------------------------------------------------------------------- /source/css/_highlight/tomorrow-night-blue.styl: -------------------------------------------------------------------------------- 1 | /* Tomorrow Night Blue Theme */ 2 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 3 | /* Original theme - https://github.com/chriskempson/tomorrow-theme */ 4 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 5 | 6 | .highlight 7 | color: white 8 | background: #002451 9 | .code 10 | /* Tomorrow Comment */ 11 | .comment, 12 | .quote 13 | color: #7285b7 14 | 15 | /* Tomorrow Red */ 16 | .variable, 17 | .template-variable, 18 | .tag, 19 | .name, 20 | .selector-id, 21 | .selector-class, 22 | .regexp, 23 | .deletion 24 | color: #ff9da4 25 | 26 | /* Tomorrow Orange */ 27 | .number, 28 | .built_in, 29 | .builtin-name, 30 | .literal, 31 | .type, 32 | .params, 33 | .meta, 34 | .link 35 | color: #ffc58f 36 | 37 | /* Tomorrow Yellow */ 38 | .attribute 39 | color: #ffeead 40 | 41 | /* Tomorrow Green */ 42 | .string, 43 | .symbol, 44 | .bullet, 45 | .addition 46 | color: #d1f1a9 47 | 48 | /* Tomorrow Blue */ 49 | .title, 50 | .section 51 | color: #bbdaff 52 | 53 | /* Tomorrow Purple */ 54 | .keyword, 55 | .selector-tag 56 | color: #ebbbff 57 | 58 | .emphasis 59 | font-style: italic 60 | 61 | .strong 62 | font-weight: bold 63 | -------------------------------------------------------------------------------- /layout/share/addtoany.ejs: -------------------------------------------------------------------------------- 1 |
2 | Share 3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | -------------------------------------------------------------------------------- /source/css/_highlight/solarized-dark.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull 4 | 5 | */ 6 | 7 | .highlight 8 | color: #839496 9 | background: #002b36 10 | .code 11 | .comment, 12 | .quote 13 | color: #586e75 14 | 15 | /* Solarized Green */ 16 | .keyword, 17 | .selector-tag, 18 | .addition 19 | color: #859900 20 | 21 | /* Solarized Cyan */ 22 | .number, 23 | .string, 24 | .meta .meta-string, 25 | .literal, 26 | .doctag, 27 | .regexp 28 | color: #2aa198 29 | 30 | /* Solarized Blue */ 31 | .title, 32 | .section, 33 | .name, 34 | .selector-id, 35 | .selector-class 36 | color: #268bd2 37 | 38 | /* Solarized Yellow */ 39 | .attribute, 40 | .attr, 41 | .variable, 42 | .template-variable, 43 | .class .title, 44 | .type 45 | color: #b58900 46 | 47 | /* Solarized Orange */ 48 | .symbol, 49 | .bullet, 50 | .subst, 51 | .meta, 52 | .meta .keyword, 53 | .selector-attr, 54 | .selector-pseudo, 55 | .link 56 | color: #cb4b16 57 | 58 | /* Solarized Red */ 59 | .built_in, 60 | .deletion 61 | color: #dc322f 62 | 63 | .formula 64 | background: #073642 65 | 66 | .emphasis 67 | font-style: italic 68 | 69 | .strong 70 | font-weight: bold 71 | -------------------------------------------------------------------------------- /source/css/_highlight/solarized-light.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull 4 | 5 | */ 6 | 7 | .highlight 8 | color: #657b83 9 | background: #fdf6e3 10 | .code 11 | .comment, 12 | .quote 13 | color: #93a1a1 14 | 15 | /* Solarized Green */ 16 | .keyword, 17 | .selector-tag, 18 | .addition 19 | color: #859900 20 | 21 | /* Solarized Cyan */ 22 | .number, 23 | .string, 24 | .meta .meta-string, 25 | .literal, 26 | .doctag, 27 | .regexp 28 | color: #2aa198 29 | 30 | /* Solarized Blue */ 31 | .title, 32 | .section, 33 | .name, 34 | .selector-id, 35 | .selector-class 36 | color: #268bd2 37 | 38 | /* Solarized Yellow */ 39 | .attribute, 40 | .attr, 41 | .variable, 42 | .template-variable, 43 | .class .title, 44 | .type 45 | color: #b58900 46 | 47 | /* Solarized Orange */ 48 | .symbol, 49 | .bullet, 50 | .subst, 51 | .meta, 52 | .meta .keyword, 53 | .selector-attr, 54 | .selector-pseudo, 55 | .link 56 | color: #cb4b16 57 | 58 | /* Solarized Red */ 59 | .built_in, 60 | .deletion 61 | color: #dc322f 62 | 63 | .formula 64 | background: #eee8d5 65 | 66 | .emphasis 67 | font-style: italic 68 | 69 | .strong 70 | font-weight: bold 71 | -------------------------------------------------------------------------------- /source/css/_highlight/docco.styl: -------------------------------------------------------------------------------- 1 | /* 2 | Docco style used in http://jashkenas.github.com/docco/ converted by Simon Madine (@thingsinjars) 3 | */ 4 | 5 | .highlight 6 | color: #000 7 | background: #f8f8ff 8 | .code 9 | .comment, 10 | .quote 11 | color: #408080 12 | font-style: italic 13 | 14 | .keyword, 15 | .selector-tag, 16 | .literal, 17 | .subst 18 | color: #954121 19 | 20 | .number 21 | color: #40a070 22 | 23 | .string, 24 | .doctag 25 | color: #219161 26 | 27 | .selector-id, 28 | .selector-class, 29 | .section, 30 | .type 31 | color: #19469d 32 | 33 | .params 34 | color: #00f 35 | 36 | .title 37 | color: #458 38 | font-weight: bold 39 | 40 | .tag, 41 | .name, 42 | .attribute 43 | color: #000080 44 | font-weight: normal 45 | 46 | .variable, 47 | .template-variable 48 | color: #008080 49 | 50 | .regexp, 51 | .link 52 | color: #b68 53 | 54 | .symbol, 55 | .bullet 56 | color: #990073 57 | 58 | .built_in, 59 | .builtin-name 60 | color: #0086b3 61 | 62 | .meta 63 | color: #999 64 | font-weight: bold 65 | 66 | .deletion 67 | background: #fdd 68 | 69 | .addition 70 | background: #dfd 71 | 72 | .emphasis 73 | font-style: italic 74 | 75 | .strong 76 | font-weight: bold 77 | -------------------------------------------------------------------------------- /layout/common/content-title.ejs: -------------------------------------------------------------------------------- 1 |
2 |

3 | <% 4 | var title = page.title; 5 | if (page.archive) { 6 | title = __('index.archive'); 7 | if (page.month) { 8 | title += ': ' + page.year + '/' + page.month; 9 | } else if (page.year) { 10 | title += ': ' + page.year; 11 | } 12 | title = '' + title; 13 | } else if (page.category) { 14 | title = '' + __('index.category') + ': ' + page.category + ''; 15 | } else if (page.tag) { 16 | title = '' + __('index.tag') + ': ' + page.tag + ''; 17 | } else if (is_post()) { 18 | title = list_categories(page.categories, {show_count: false, style: 'none', class: 'page-title', separator: ''}); 19 | if (title == "") { 20 | title = __('index.uncategorized'); 21 | } 22 | } else if (is_home()) { 23 | title = '' + __('index.home') + ''; 24 | } else if (page.subtitle) { 25 | title = '' + page.subtitle + ''; 26 | } else if (page.title) { 27 | title = '' + page.title + ''; 28 | } else { 29 | title = config.title; 30 | } 31 | %> 32 | <%- title %> 33 |

34 |
-------------------------------------------------------------------------------- /source/css/_highlight/atelier-dune-light.styl: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Dune Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | .highlight 6 | color: #6e6b5e 7 | background: #fefbec 8 | .code 9 | /* Atelier-Dune Comment */ 10 | .comment, 11 | .quote 12 | color: #7d7a68 13 | 14 | /* Atelier-Dune Red */ 15 | .variable, 16 | .template-variable, 17 | .attribute, 18 | .tag, 19 | .name, 20 | .regexp, 21 | .link, 22 | .name, 23 | .selector-id, 24 | .selector-class 25 | color: #d73737 26 | 27 | /* Atelier-Dune Orange */ 28 | .number, 29 | .meta, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params 35 | color: #b65611 36 | 37 | /* Atelier-Dune Green */ 38 | .string, 39 | .symbol, 40 | .bullet 41 | color: #60ac39 42 | 43 | /* Atelier-Dune Blue */ 44 | .title, 45 | .section 46 | color: #6684e1 47 | 48 | /* Atelier-Dune Purple */ 49 | .keyword, 50 | .selector-tag 51 | color: #b854d4 52 | 53 | .highlight 54 | display: block 55 | overflow-x: auto 56 | background: #fefbec 57 | color: #6e6b5e 58 | padding: 0.5em 59 | 60 | .emphasis 61 | font-style: italic 62 | 63 | .strong 64 | font-weight: bold 65 | -------------------------------------------------------------------------------- /source/css/_highlight/github.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | github.com style (c) Vasily Polovnyov 4 | 5 | */ 6 | 7 | .highlight 8 | color: #333 9 | background: #f8f8f8 10 | .code 11 | .comment, 12 | .quote 13 | color: #998 14 | font-style: italic 15 | 16 | .keyword, 17 | .selector-tag, 18 | .subst 19 | color: #333 20 | font-weight: bold 21 | 22 | .number, 23 | .literal, 24 | .variable, 25 | .template-variable, 26 | .tag .attr 27 | color: #008080 28 | 29 | .string, 30 | .doctag 31 | color: #d14 32 | 33 | .title, 34 | .section, 35 | .selector-id 36 | color: #900 37 | font-weight: bold 38 | 39 | .subst 40 | font-weight: normal 41 | 42 | .type, 43 | .class .title 44 | color: #458 45 | font-weight: bold 46 | 47 | .tag, 48 | .name, 49 | .attribute 50 | color: #000080 51 | font-weight: normal 52 | 53 | .regexp, 54 | .link 55 | color: #009926 56 | 57 | .symbol, 58 | .bullet 59 | color: #990073 60 | 61 | .built_in, 62 | .builtin-name 63 | color: #0086b3 64 | 65 | .meta 66 | color: #999 67 | font-weight: bold 68 | 69 | .deletion 70 | background: #fdd 71 | 72 | .addition 73 | background: #dfd 74 | 75 | .emphasis 76 | font-style: italic 77 | 78 | .strong 79 | font-weight: bold 80 | -------------------------------------------------------------------------------- /layout/share/jiathis.ejs: -------------------------------------------------------------------------------- 1 |
2 | 分享到: 3 | QQ空间 4 | 新浪微博 5 | 腾讯微博 6 | 微信 7 | 更多 8 | 9 |
10 | 11 | -------------------------------------------------------------------------------- /source/css/_highlight/idea.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Intellij Idea-like styling (c) Vasily Polovnyov 4 | 5 | */ 6 | 7 | .highlight 8 | color: #000 9 | background: #fff 10 | .code 11 | .subst, 12 | .title 13 | font-weight: normal 14 | color: #000 15 | 16 | .comment, 17 | .quote 18 | color: #808080 19 | font-style: italic 20 | 21 | .meta 22 | color: #808000 23 | 24 | .tag 25 | background: #efefef 26 | 27 | .section, 28 | .name, 29 | .literal, 30 | .keyword, 31 | .selector-tag, 32 | .type, 33 | .selector-id, 34 | .selector-class 35 | font-weight: bold 36 | color: #000080 37 | 38 | .attribute, 39 | .number, 40 | .regexp, 41 | .link 42 | font-weight: bold 43 | color: #0000ff 44 | 45 | .number, 46 | .regexp, 47 | .link 48 | font-weight: normal 49 | 50 | .string 51 | color: #008000 52 | font-weight: bold 53 | 54 | .symbol, 55 | .bullet, 56 | .formula 57 | color: #000 58 | background: #d0eded 59 | font-style: italic 60 | 61 | .doctag 62 | text-decoration: underline 63 | 64 | .variable, 65 | .template-variable 66 | color: #660e7a 67 | 68 | .addition 69 | background: #baeeba 70 | 71 | .deletion 72 | background: #ffc8bd 73 | 74 | .emphasis 75 | font-style: italic 76 | 77 | .strong 78 | font-weight: bold 79 | -------------------------------------------------------------------------------- /source/css/_highlight/sunburst.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Sunburst-like style (c) Vasily Polovnyov 4 | 5 | */ 6 | 7 | .highlight 8 | color: #f8f8f8 9 | background: #000 10 | .code 11 | .comment, 12 | .quote 13 | color: #aeaeae 14 | font-style: italic 15 | 16 | .keyword, 17 | .selector-tag, 18 | .type 19 | color: #e28964 20 | 21 | .string 22 | color: #65b042 23 | 24 | .subst 25 | color: #daefa3 26 | 27 | .regexp, 28 | .link 29 | color: #e9c062 30 | 31 | .title, 32 | .section, 33 | .tag, 34 | .name 35 | color: #89bdff 36 | 37 | .class .title, 38 | .doctag 39 | text-decoration: underline 40 | 41 | .symbol, 42 | .bullet, 43 | .number 44 | color: #3387cc 45 | 46 | .params, 47 | .variable, 48 | .template-variable 49 | color: #3e87e3 50 | 51 | .attribute 52 | color: #cda869 53 | 54 | .meta 55 | color: #8996a8 56 | 57 | .formula 58 | background-color: #0e2231 59 | color: #f8f8f8 60 | font-style: italic 61 | 62 | .addition 63 | background-color: #253b22 64 | color: #f8f8f8 65 | 66 | .deletion 67 | background-color: #420e09 68 | color: #f8f8f8 69 | 70 | .selector-class 71 | color: #9b703f 72 | 73 | .selector-id 74 | color: #8b98ab 75 | 76 | .emphasis 77 | font-style: italic 78 | 79 | .strong 80 | font-weight: bold 81 | -------------------------------------------------------------------------------- /source/css/_highlight/atelier-cave-dark.styl: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Cave Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | .highlight 6 | color: #8b8792 7 | background: #19171c 8 | .code 9 | /* Atelier-Cave Comment */ 10 | .comment, 11 | .quote 12 | color: #7e7887 13 | 14 | /* Atelier-Cave Red */ 15 | .variable, 16 | .template-variable, 17 | .attribute, 18 | .regexp, 19 | .link, 20 | .tag, 21 | .name, 22 | .selector-id, 23 | .selector-class 24 | color: #be4678 25 | 26 | /* Atelier-Cave Orange */ 27 | .number, 28 | .meta, 29 | .built_in, 30 | .builtin-name, 31 | .literal, 32 | .type, 33 | .params 34 | color: #aa573c 35 | 36 | /* Atelier-Cave Green */ 37 | .string, 38 | .symbol, 39 | .bullet 40 | color: #2a9292 41 | 42 | /* Atelier-Cave Blue */ 43 | .title, 44 | .section 45 | color: #576ddb 46 | 47 | /* Atelier-Cave Purple */ 48 | .keyword, 49 | .selector-tag 50 | color: #955ae7 51 | 52 | .deletion, 53 | .addition 54 | color: #19171c 55 | display: inline-block 56 | width: 100% 57 | 58 | .deletion 59 | background-color: #be4678 60 | 61 | .addition 62 | background-color: #2a9292 63 | 64 | .emphasis 65 | font-style: italic 66 | 67 | .strong 68 | font-weight: bold 69 | -------------------------------------------------------------------------------- /source/css/_highlight/atelier-cave-light.styl: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Cave Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | .highlight 6 | color: #585260 7 | background: #efecf4 8 | .code 9 | /* Atelier-Cave Comment */ 10 | .comment, 11 | .quote 12 | color: #655f6d 13 | 14 | /* Atelier-Cave Red */ 15 | .variable, 16 | .template-variable, 17 | .attribute, 18 | .tag, 19 | .name, 20 | .regexp, 21 | .link, 22 | .name, 23 | .name, 24 | .selector-id, 25 | .selector-class 26 | color: #be4678 27 | 28 | /* Atelier-Cave Orange */ 29 | .number, 30 | .meta, 31 | .built_in, 32 | .builtin-name, 33 | .literal, 34 | .type, 35 | .params 36 | color: #aa573c 37 | 38 | /* Atelier-Cave Green */ 39 | .string, 40 | .symbol, 41 | .bullet 42 | color: #2a9292 43 | 44 | /* Atelier-Cave Blue */ 45 | .title, 46 | .section 47 | color: #576ddb 48 | 49 | /* Atelier-Cave Purple */ 50 | .keyword, 51 | .selector-tag 52 | color: #955ae7 53 | 54 | .deletion, 55 | .addition 56 | color: #19171c 57 | display: inline-block 58 | width: 100% 59 | 60 | .deletion 61 | background-color: #be4678 62 | 63 | .addition 64 | background-color: #2a9292 65 | 66 | .emphasis 67 | font-style: italic 68 | 69 | .strong 70 | font-weight: bold 71 | -------------------------------------------------------------------------------- /source/css/_highlight/railscasts.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Railscasts-like style (c) Visoft, Inc. (Damien White) 4 | 5 | */ 6 | 7 | .highlight 8 | color: #e6e1dc 9 | background: #232323 10 | .code 11 | .comment, 12 | .quote 13 | color: #bc9458 14 | font-style: italic 15 | 16 | .keyword, 17 | .selector-tag 18 | color: #c26230 19 | 20 | .string, 21 | .number, 22 | .regexp, 23 | .variable, 24 | .template-variable 25 | color: #a5c261 26 | 27 | .subst 28 | color: #519f50 29 | 30 | .tag, 31 | .name 32 | color: #e8bf6a 33 | 34 | .type 35 | color: #da4939 36 | 37 | 38 | .symbol, 39 | .bullet, 40 | .built_in, 41 | .builtin-name, 42 | .attr, 43 | .link 44 | color: #6d9cbe 45 | 46 | .params 47 | color: #d0d0ff 48 | 49 | .attribute 50 | color: #cda869 51 | 52 | .meta 53 | color: #9b859d 54 | 55 | .title, 56 | .section 57 | color: #ffc66d 58 | 59 | .addition 60 | background-color: #144212 61 | color: #e6e1dc 62 | display: inline-block 63 | width: 100% 64 | 65 | .deletion 66 | background-color: #600 67 | color: #e6e1dc 68 | display: inline-block 69 | width: 100% 70 | 71 | .selector-class 72 | color: #9b703f 73 | 74 | .selector-id 75 | color: #8b98ab 76 | 77 | .emphasis 78 | font-style: italic 79 | 80 | .strong 81 | font-weight: bold 82 | 83 | .link 84 | text-decoration: underline 85 | -------------------------------------------------------------------------------- /source/css/_highlight/atelier-estuary-dark.styl: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Estuary Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/estuary) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | .highlight 6 | color: #929181 7 | background: #22221b 8 | .code 9 | /* Atelier-Estuary Comment */ 10 | .comment, 11 | .quote 12 | color: #878573 13 | 14 | /* Atelier-Estuary Red */ 15 | .variable, 16 | .template-variable, 17 | .attribute, 18 | .tag, 19 | .name, 20 | .regexp, 21 | .link, 22 | .name, 23 | .selector-id, 24 | .selector-class 25 | color: #ba6236 26 | 27 | /* Atelier-Estuary Orange */ 28 | .number, 29 | .meta, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params 35 | color: #ae7313 36 | 37 | /* Atelier-Estuary Green */ 38 | .string, 39 | .symbol, 40 | .bullet 41 | color: #7d9726 42 | 43 | /* Atelier-Estuary Blue */ 44 | .title, 45 | .section 46 | color: #36a166 47 | 48 | /* Atelier-Estuary Purple */ 49 | .keyword, 50 | .selector-tag 51 | color: #5f9182 52 | 53 | .deletion, 54 | .addition 55 | color: #22221b 56 | display: inline-block 57 | width: 100% 58 | 59 | .deletion 60 | background-color: #ba6236 61 | 62 | .addition 63 | background-color: #7d9726 64 | 65 | .emphasis 66 | font-style: italic 67 | 68 | .strong 69 | font-weight: bold 70 | -------------------------------------------------------------------------------- /source/css/_highlight/atelier-estuary-light.styl: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Estuary Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/estuary) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | .highlight 6 | color: #5f5e4e 7 | background: #f4f3ec 8 | .code 9 | /* Atelier-Estuary Comment */ 10 | .comment, 11 | .quote 12 | color: #6c6b5a 13 | 14 | /* Atelier-Estuary Red */ 15 | .variable, 16 | .template-variable, 17 | .attribute, 18 | .tag, 19 | .name, 20 | .regexp, 21 | .link, 22 | .name, 23 | .selector-id, 24 | .selector-class 25 | color: #ba6236 26 | 27 | /* Atelier-Estuary Orange */ 28 | .number, 29 | .meta, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params 35 | color: #ae7313 36 | 37 | /* Atelier-Estuary Green */ 38 | .string, 39 | .symbol, 40 | .bullet 41 | color: #7d9726 42 | 43 | /* Atelier-Estuary Blue */ 44 | .title, 45 | .section 46 | color: #36a166 47 | 48 | /* Atelier-Estuary Purple */ 49 | .keyword, 50 | .selector-tag 51 | color: #5f9182 52 | 53 | .deletion, 54 | .addition 55 | color: #22221b 56 | display: inline-block 57 | width: 100% 58 | 59 | .deletion 60 | background-color: #ba6236 61 | 62 | .addition 63 | background-color: #7d9726 64 | 65 | .emphasis 66 | font-style: italic 67 | 68 | .strong 69 | font-weight: bold 70 | -------------------------------------------------------------------------------- /source/css/_highlight/atelier-plateau-dark.styl: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Plateau Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/plateau) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | .highlight 6 | color: #8a8585 7 | background: #1b1818 8 | .code 9 | /* Atelier-Plateau Comment */ 10 | .comment, 11 | .quote 12 | color: #7e7777 13 | 14 | /* Atelier-Plateau Red */ 15 | .variable, 16 | .template-variable, 17 | .attribute, 18 | .tag, 19 | .name, 20 | .regexp, 21 | .link, 22 | .name, 23 | .selector-id, 24 | .selector-class 25 | color: #ca4949 26 | 27 | /* Atelier-Plateau Orange */ 28 | .number, 29 | .meta, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params 35 | color: #b45a3c 36 | 37 | /* Atelier-Plateau Green */ 38 | .string, 39 | .symbol, 40 | .bullet 41 | color: #4b8b8b 42 | 43 | /* Atelier-Plateau Blue */ 44 | .title, 45 | .section 46 | color: #7272ca 47 | 48 | /* Atelier-Plateau Purple */ 49 | .keyword, 50 | .selector-tag 51 | color: #8464c4 52 | 53 | .deletion, 54 | .addition 55 | color: #1b1818 56 | display: inline-block 57 | width: 100% 58 | 59 | .deletion 60 | background-color: #ca4949 61 | 62 | .addition 63 | background-color: #4b8b8b 64 | 65 | .emphasis 66 | font-style: italic 67 | 68 | .strong 69 | font-weight: bold 70 | -------------------------------------------------------------------------------- /source/css/_highlight/atelier-plateau-light.styl: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Plateau Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/plateau) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | .highlight 6 | color: #585050 7 | background: #f4ecec 8 | .code 9 | /* Atelier-Plateau Comment */ 10 | .comment, 11 | .quote 12 | color: #655d5d 13 | 14 | /* Atelier-Plateau Red */ 15 | .variable, 16 | .template-variable, 17 | .attribute, 18 | .tag, 19 | .name, 20 | .regexp, 21 | .link, 22 | .name, 23 | .selector-id, 24 | .selector-class 25 | color: #ca4949 26 | 27 | /* Atelier-Plateau Orange */ 28 | .number, 29 | .meta, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params 35 | color: #b45a3c 36 | 37 | /* Atelier-Plateau Green */ 38 | .string, 39 | .symbol, 40 | .bullet 41 | color: #4b8b8b 42 | 43 | /* Atelier-Plateau Blue */ 44 | .title, 45 | .section 46 | color: #7272ca 47 | 48 | /* Atelier-Plateau Purple */ 49 | .keyword, 50 | .selector-tag 51 | color: #8464c4 52 | 53 | .deletion, 54 | .addition 55 | color: #1b1818 56 | display: inline-block 57 | width: 100% 58 | 59 | .deletion 60 | background-color: #ca4949 61 | 62 | .addition 63 | background-color: #4b8b8b 64 | 65 | .emphasis 66 | font-style: italic 67 | 68 | .strong 69 | font-weight: bold 70 | -------------------------------------------------------------------------------- /source/css/_highlight/atelier-savanna-dark.styl: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Savanna Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/savanna) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | .highlight 6 | color: #87928a 7 | background: #171c19 8 | .code 9 | /* Atelier-Savanna Comment */ 10 | .comment, 11 | .quote 12 | color: #78877d 13 | 14 | /* Atelier-Savanna Red */ 15 | .variable, 16 | .template-variable, 17 | .attribute, 18 | .tag, 19 | .name, 20 | .regexp, 21 | .link, 22 | .name, 23 | .selector-id, 24 | .selector-class 25 | color: #b16139 26 | 27 | /* Atelier-Savanna Orange */ 28 | .number, 29 | .meta, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params 35 | color: #9f713c 36 | 37 | /* Atelier-Savanna Green */ 38 | .string, 39 | .symbol, 40 | .bullet 41 | color: #489963 42 | 43 | /* Atelier-Savanna Blue */ 44 | .title, 45 | .section 46 | color: #478c90 47 | 48 | /* Atelier-Savanna Purple */ 49 | .keyword, 50 | .selector-tag 51 | color: #55859b 52 | 53 | .deletion, 54 | .addition 55 | color: #171c19 56 | display: inline-block 57 | width: 100% 58 | 59 | .deletion 60 | background-color: #b16139 61 | 62 | .addition 63 | background-color: #489963 64 | 65 | .emphasis 66 | font-style: italic 67 | 68 | .strong 69 | font-weight: bold 70 | -------------------------------------------------------------------------------- /source/css/_highlight/atelier-savanna-light.styl: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Savanna Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/savanna) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | .highlight 6 | color: #526057 7 | background: #ecf4ee 8 | .code 9 | /* Atelier-Savanna Comment */ 10 | .comment, 11 | .quote 12 | color: #5f6d64 13 | 14 | /* Atelier-Savanna Red */ 15 | .variable, 16 | .template-variable, 17 | .attribute, 18 | .tag, 19 | .name, 20 | .regexp, 21 | .link, 22 | .name, 23 | .selector-id, 24 | .selector-class 25 | color: #b16139 26 | 27 | /* Atelier-Savanna Orange */ 28 | .number, 29 | .meta, 30 | .built_in, 31 | .builtin-name, 32 | .literal, 33 | .type, 34 | .params 35 | color: #9f713c 36 | 37 | /* Atelier-Savanna Green */ 38 | .string, 39 | .symbol, 40 | .bullet 41 | color: #489963 42 | 43 | /* Atelier-Savanna Blue */ 44 | .title, 45 | .section 46 | color: #478c90 47 | 48 | /* Atelier-Savanna Purple */ 49 | .keyword, 50 | .selector-tag 51 | color: #55859b 52 | 53 | .deletion, 54 | .addition 55 | color: #171c19 56 | display: inline-block 57 | width: 100% 58 | 59 | .deletion 60 | background-color: #b16139 61 | 62 | .addition 63 | background-color: #489963 64 | 65 | .emphasis 66 | font-style: italic 67 | 68 | .strong 69 | font-weight: bold 70 | -------------------------------------------------------------------------------- /source/css/_highlight/hybrid.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | vim-hybrid theme by w0ng (https://github.com/w0ng/vim-hybrid) 4 | 5 | */ 6 | 7 | /*background color*/ 8 | .highlight 9 | color: #c5c8c6 10 | background: #1d1f21 11 | /*selection color*/ 12 | &::selection, 13 | span::selection 14 | background: #373b41 15 | 16 | &::-moz-selection, 17 | span::-moz-selection 18 | background: #373b41 19 | .code 20 | 21 | /*color: fg_yellow*/ 22 | .title, 23 | .name 24 | color: #f0c674 25 | 26 | /*color: fg_comment*/ 27 | .comment, 28 | .meta, 29 | .meta .keyword 30 | color: #707880 31 | 32 | /*color: fg_red*/ 33 | .number, 34 | .symbol, 35 | .literal, 36 | .deletion, 37 | .link 38 | color: #cc6666 39 | 40 | /*color: fg_green*/ 41 | .string, 42 | .doctag, 43 | .addition, 44 | .regexp, 45 | .selector-attr, 46 | .selector-pseudo 47 | color: #b5bd68 48 | 49 | /*color: fg_purple*/ 50 | .attribute, 51 | .code, 52 | .selector-id 53 | color: #b294bb 54 | 55 | /*color: fg_blue*/ 56 | .keyword, 57 | .selector-tag, 58 | .bullet, 59 | .tag 60 | color: #81a2be 61 | 62 | /*color: fg_aqua*/ 63 | .subst, 64 | .variable, 65 | .template-tag, 66 | .template-variable 67 | color: #8abeb7 68 | 69 | /*color: fg_orange*/ 70 | .type, 71 | .built_in, 72 | .builtin-name, 73 | .quote, 74 | .section, 75 | .selector-class 76 | color: #de935f 77 | 78 | .emphasis 79 | font-style: italic 80 | 81 | .strong 82 | font-weight: bold 83 | -------------------------------------------------------------------------------- /source/css/_highlight/agate.styl: -------------------------------------------------------------------------------- 1 | /*! 2 | * Agate by Taufik Nurrohman 3 | * ---------------------------------------------------- 4 | * 5 | * #ade5fc 6 | * #a2fca2 7 | * #c6b4f0 8 | * #d36363 9 | * #fcc28c 10 | * #fc9b9b 11 | * #ffa 12 | * #fff 13 | * #333 14 | * #62c8f3 15 | * #888 16 | * 17 | */ 18 | 19 | .highlight 20 | color: white 21 | background: #333 22 | .code 23 | .name, 24 | .strong 25 | font-weight: bold 26 | 27 | .code, 28 | .emphasis 29 | font-style: italic 30 | 31 | .tag 32 | color: #62c8f3 33 | 34 | .variable, 35 | .template-variable, 36 | .selector-id, 37 | .selector-class 38 | color: #ade5fc 39 | 40 | .string, 41 | .bullet 42 | color: #a2fca2 43 | 44 | .type, 45 | .title, 46 | .section, 47 | .attribute, 48 | .quote, 49 | .built_in, 50 | .builtin-name 51 | color: #ffa 52 | 53 | .number, 54 | .symbol, 55 | .bullet 56 | color: #d36363 57 | 58 | .keyword, 59 | .selector-tag, 60 | .literal 61 | color: #fcc28c 62 | 63 | .comment, 64 | .deletion, 65 | .code 66 | color: #888 67 | 68 | .regexp, 69 | .link 70 | color: #c6b4f0 71 | 72 | .meta 73 | color: #fc9b9b 74 | 75 | .deletion 76 | background-color: #fc9b9b 77 | color: #333 78 | 79 | .addition 80 | background-color: #a2fca2 81 | color: #333 82 | 83 | .highlight a 84 | color: inherit 85 | 86 | .highlight a:focus, 87 | .highlight a:hover 88 | color: inherit 89 | text-decoration: underline 90 | -------------------------------------------------------------------------------- /_config.yml.example: -------------------------------------------------------------------------------- 1 | # Menus 2 | menu: 3 | Home: / 4 | # Delete this row if you don't want categories in your header nav bar 5 | Categories: 6 | About: /about/index.html 7 | 8 | # Customize 9 | customize: 10 | logo: 11 | width: 165 12 | height: 60 13 | url: images/logo-header.png 14 | theme_color: '#006bde' 15 | highlight: androidstudio 16 | sidebar: left # sidebar position, options: left, right 17 | thumbnail: true # enable posts thumbnail, options: true, false 18 | favicon: # path to favicon 19 | social_links: # for more icons, please see http://fontawesome.io/icons/#brand 20 | twitter: / 21 | facebook: / 22 | google-plus: / 23 | github: https://github.com/ppoffice/hexo-theme-hueman 24 | weibo: / 25 | rss: / 26 | 27 | # Widgets 28 | widgets: 29 | - recent_posts 30 | - category 31 | - archive 32 | - tag 33 | - tagcloud 34 | - links 35 | 36 | # Search 37 | search: 38 | insight: true # you need to install `hexo-generator-json-content` before using Insight Search 39 | swiftype: # enter swiftype install key here 40 | baidu: false # you need to disable other search engines to use Baidu search, options: true, false 41 | 42 | # Comment 43 | comment: 44 | disqus: hexo-theme-hueman # enter disqus shortname here 45 | duoshuo: # enter duoshuo shortname here 46 | youyan: # enter youyan uid here 47 | 48 | # Share 49 | share: default # options: jiathis, bdshare, addtoany, default 50 | 51 | # Plugins 52 | plugins: 53 | lightgallery: true # options: true, false 54 | google_analytics: # enter the tracking ID for your Google Analytics 55 | baidu_analytics: # enter Baidu Analytics hash key 56 | 57 | # Miscellaneous 58 | miscellaneous: 59 | open_graph: # see http://ogp.me 60 | fb_app_id: 61 | fb_admins: 62 | twitter_id: 63 | google_plus: 64 | links: 65 | Hexo: http://hexo.io -------------------------------------------------------------------------------- /layout/comment/duoshuo.ejs: -------------------------------------------------------------------------------- 1 | <% if (typeof(script) !== 'undefined' && script) { %> 2 | 13 | <% } else { %> 14 |
15 | 52 | <% } %> -------------------------------------------------------------------------------- /layout/common/header.ejs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/css/_variables.styl: -------------------------------------------------------------------------------- 1 | // Config 2 | support-for-ie = false 3 | vendor-prefixes = webkit moz ms official 4 | 5 | // Colors 6 | color-default = #555 7 | if hexo-config("customize.theme_color") 8 | color-theme = convert(hexo-config("customize.theme_color")) 9 | else 10 | color-theme = #3b8dbd 11 | color-grey = #aaa 12 | color-header-background = #26272b 13 | color-main-background = #fff 14 | color-background = #eaeaea 15 | color-mobile-nav-background = #191919 16 | color-border = #ddd 17 | color-border-light = #eee 18 | color-nav-foreground = rgba(255,255,255,0.7) 19 | color-nav-background = #33363b 20 | color-nav-hover-background = rgba(0,0,0,0.1) 21 | color-sidebar-background = #f0f0f0 22 | color-sidebar-text = #777 23 | color-sidebar-text-dark = #444 24 | color-footer-background = #33363b 25 | 26 | // Fonts 27 | font-sans = "Titillium Web", "Helvetica Neue", Helvetica, Arial, "Microsoft Yahei", sans-serif 28 | font-serif = Georgia, "Times New Roman", serif 29 | font-mono = "Source Code Pro", Consolas, Monaco, Menlo, Consolas, monospace 30 | font-icon-profile-size = 24px 31 | font-size = 14px 32 | font-size-article = 18px 33 | line-height = 1.6em 34 | line-height-title = 1.3em 35 | 36 | // Header 37 | logo-url = hexo-config("customize.logo.url") 38 | logo-width = 0px + hexo-config("customize.logo.width") 39 | logo-height = 0px + hexo-config("customize.logo.height") 40 | 41 | // Sidebar 42 | sidebar = hexo-config("customize.sidebar") 43 | sidebar-width = 340px 44 | sidebar-toggle-width = 50px 45 | 46 | // Layout 47 | container-padding = 20px 48 | container-inner-min-width = 320px 49 | container-inner-max-width = 1120px 50 | article-padding = 20px 51 | nav-height = 60px 52 | main-nav-child-width = 180px 53 | mobile-nav-width = 280px 54 | thumbnail-default = "images/thumb-default.png" 55 | thumbnail-default-small = "images/thumb-default-small.png" 56 | preloader = "images/preloader.gif" 57 | preloader-2x = "images/preloader@2x.gif" 58 | 59 | // Code Highlight 60 | highlight = hexo-config("customize.highlight") || "tomorrow" 61 | 62 | // Miscellaneous 63 | color-twitter = #00aced 64 | color-facebook = #3b5998 65 | color-pinterest = #cb2027 66 | color-google = #dd4b39 67 | -------------------------------------------------------------------------------- /source/vendor/lightgallery/js/lg-hash.min.js: -------------------------------------------------------------------------------- 1 | /**! 2 | * lg-hash.js | 0.0.1 | August 1st 2016 3 | * http://sachinchoolur.github.io/lg-hash.js 4 | * Copyright (c) 2016 Sachin N; 5 | * @license Apache 2.0 6 | */ 7 | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.LgHash=e()}}(function(){var e,t,o;return function e(t,o,i){function n(s,l){if(!o[s]){if(!t[s]){var a="function"==typeof require&&require;if(!l&&a)return a(s,!0);if(r)return r(s,!0);var h=new Error("Cannot find module '"+s+"'");throw h.code="MODULE_NOT_FOUND",h}var f=o[s]={exports:{}};t[s][0].call(f.exports,function(e){var o=t[s][1][e];return n(o?o:e)},f,f.exports,e,t,o,i)}return o[s].exports}for(var r="function"==typeof require&&require,s=0;s-1?e.core.slide(o,!1,!1):e.core.lGalleryOn&&e.core.destroy()})},o.prototype.destroy=function(){this.core.s.hash&&(this.oldHash&&this.oldHash.indexOf("lg="+this.core.s.galleryId)<0?window.location.hash=this.oldHash:history.pushState?history.pushState("",document.title,window.location.pathname+window.location.search):window.location.hash="",utils.off(this.core.el,".lghash"))},window.lgModules.hash=o})},{}]},{},[1])(1)}); -------------------------------------------------------------------------------- /layout/common/head.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | <% 6 | var title = page.title; 7 | if (is_archive()) { 8 | title = __('index.archive'); 9 | if (is_month()) { 10 | title += ': ' + page.year + '/' + page.month; 11 | } else if (is_year()) { 12 | title += ': ' + page.year; 13 | } 14 | } else if (is_category()) { 15 | title = __('index.category') + ': ' + page.category; 16 | } else if (is_tag()) { 17 | title = __('index.tag') + ': ' + page.tag; 18 | } 19 | %> 20 | <% if (title) { %><%= title %> | <% } %><%= config.title %> 21 | 22 | <% if (page.tags) { 23 | var keywords = []; 24 | for (var i in page.tags.data) { 25 | keywords.push(page.tags.data[i].name); 26 | } 27 | %> 28 | 29 | <% } %> 30 | <%- open_graph({ 31 | image: thumbnail(page), 32 | fb_app_id: theme.miscellaneous.open_graph.fb_app_id, 33 | fb_admins: theme.miscellaneous.open_graph.fb_admins, 34 | twitter_id: theme.miscellaneous.open_graph.twitter_id, 35 | google_plus: theme.miscellaneous.open_graph.google_plus, 36 | }) %> 37 | <%- meta(page) %> 38 | 39 | <% if (theme.customize && theme.customize.social_links && theme.customize.social_links.rss) { %> 40 | 41 | <% } %> 42 | 43 | <% if (theme.customize.favicon) { %> 44 | 45 | <% } %> 46 | 47 | <%- css('vendor/font-awesome/css/font-awesome.min') %> 48 | <%- css('vendor/titillium-web/styles') %> 49 | <%- css('vendor/source-code-pro/styles') %> 50 | 51 | <%- css('css/style') %> 52 | 53 | <%- js('vendor/jquery/2.0.3/jquery.min') %> 54 | <%- partial('plugin/scripts', { isHead: true }) %> 55 | 56 | -------------------------------------------------------------------------------- /source/css/_partial/archive.styl: -------------------------------------------------------------------------------- 1 | .archives-wrap 2 | margin: block-margin 0 3 | 4 | .archives 5 | clearfix() 6 | 7 | .archive-year-wrap 8 | padding: 18px 30px 17px 9 | font-size: font-size + 2 10 | color: color-default + #111 11 | border-bottom: 1px solid color-border-light 12 | 13 | .archive-year 14 | @extend $block-caption 15 | i 16 | margin-right: 8px 17 | 18 | .archives 19 | column-gap: 10px 20 | @media mq-tablet 21 | column-count: 2 22 | @media mq-normal 23 | column-count: 3 24 | 25 | .archive-article 26 | avoid-column-break() 27 | 28 | .archive-article-inner 29 | padding: 10px 30 | margin-bottom: 15px 31 | 32 | .archive-article-title 33 | text-decoration: none 34 | font-weight: bold 35 | color: color-default 36 | transition: color 0.2s 37 | line-height: line-height 38 | &:hover 39 | color: color-theme 40 | 41 | .archive-article-footer 42 | margin-top: 1em 43 | 44 | .archive-article-date 45 | color: color-grey 46 | text-decoration: none 47 | font-size: 0.85em 48 | line-height: 1em 49 | margin-bottom: 0.5em 50 | display: block 51 | 52 | #page-nav 53 | clearfix() 54 | float: left 55 | width: 100% 56 | display: block 57 | margin: 30px 0px 45px 0px 58 | text-align: center 59 | color: color-grey 60 | .pages 61 | display: block 62 | font-size: 17px 63 | font-weight: 300 64 | margin-bottom: 1em!important 65 | border: none!important 66 | &:before 67 | content: "\f15c" 68 | font-family: FontAwesome 69 | margin-right: 6px 70 | .page-number, 71 | .extend 72 | color: color-theme 73 | position: relative 74 | overflow: hidden 75 | font-size: 16px 76 | padding: 7px 8px 77 | display: inline 78 | margin: 0 2px 79 | text-decoration: none 80 | border-bottom: 3px solid color-border 81 | border-top: 1px solid #f1f1f1 82 | font-weight: 600 83 | transition: 0.2s ease-in 84 | &:hover, 85 | &:active, 86 | &.current 87 | color: #444 88 | border-bottom: 3px solid color-theme 89 | border-top: 1px solid #f1f1f1 90 | .space 91 | color: color-border 92 | -------------------------------------------------------------------------------- /source/vendor/titillium-web/styles.css: -------------------------------------------------------------------------------- 1 | /* latin-ext */ 2 | @font-face { 3 | font-family: 'Titillium Web'; 4 | font-style: normal; 5 | font-weight: 300; 6 | src: local('Titillium WebLight'), local('TitilliumWeb-Light'), url(fonts/anMUvcNT0H1YN4FII8wpr9INifKjd1RJ3NxxEi9Cy2w.woff2) format('woff2'); 7 | unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; 8 | } 9 | /* latin */ 10 | @font-face { 11 | font-family: 'Titillium Web'; 12 | font-style: normal; 13 | font-weight: 300; 14 | src: local('Titillium WebLight'), local('TitilliumWeb-Light'), url(fonts/anMUvcNT0H1YN4FII8wpr4-67659ICLY8bMrYhtePPA.woff2) format('woff2'); 15 | unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; 16 | } 17 | /* latin-ext */ 18 | @font-face { 19 | font-family: 'Titillium Web'; 20 | font-style: normal; 21 | font-weight: 400; 22 | src: local('Titillium Web'), local('TitilliumWeb-Regular'), url(fonts/7XUFZ5tgS-tD6QamInJTcSo_WB_cotcEMUw1LsIE8mM.woff2) format('woff2'); 23 | unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; 24 | } 25 | /* latin */ 26 | @font-face { 27 | font-family: 'Titillium Web'; 28 | font-style: normal; 29 | font-weight: 400; 30 | src: local('Titillium Web'), local('TitilliumWeb-Regular'), url(fonts/7XUFZ5tgS-tD6QamInJTcZSnX671uNZIV63UdXh3Mg0.woff2) format('woff2'); 31 | unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; 32 | } 33 | /* latin-ext */ 34 | @font-face { 35 | font-family: 'Titillium Web'; 36 | font-style: normal; 37 | font-weight: 600; 38 | src: local('Titillium WebSemiBold'), local('TitilliumWeb-SemiBold'), url(fonts/anMUvcNT0H1YN4FII8wpr_SNRT0fZ5CX-AqRkMYgJJo.woff2) format('woff2'); 39 | unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; 40 | } 41 | /* latin */ 42 | @font-face { 43 | font-family: 'Titillium Web'; 44 | font-style: normal; 45 | font-weight: 600; 46 | src: local('Titillium WebSemiBold'), local('TitilliumWeb-SemiBold'), url(fonts/anMUvcNT0H1YN4FII8wpr46gJz9aNFrmnwBdd69aqzY.woff2) format('woff2'); 47 | unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; 48 | } -------------------------------------------------------------------------------- /source/css/_highlight/grayscale.styl: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | grayscale style (c) MY Sun 4 | 5 | */ 6 | 7 | .highlight 8 | color: #333 9 | background: #fff 10 | .code 11 | .comment, 12 | .quote 13 | color: #777 14 | font-style: italic 15 | 16 | .keyword, 17 | .selector-tag, 18 | .subst 19 | color: #333 20 | font-weight: bold 21 | 22 | .number, 23 | .literal 24 | color: #777 25 | 26 | .string, 27 | .doctag, 28 | .formula 29 | color: #333 30 | background: url('data:image/pngbase64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAJ0lEQVQIW2O8e/fufwYGBgZBQUEQxcCIIfDu3Tuwivfv30NUoAsAALHpFMMLqZlPAAAAAElFTkSuQmCC') repeat 31 | 32 | .title, 33 | .section, 34 | .selector-id 35 | color: #000 36 | font-weight: bold 37 | 38 | .subst 39 | font-weight: normal 40 | 41 | .class .title, 42 | .type, 43 | .name 44 | color: #333 45 | font-weight: bold 46 | 47 | .tag 48 | color: #333 49 | 50 | .regexp 51 | color: #333 52 | background: url('data:image/pngbase64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAAPUlEQVQYV2NkQAN37979r6yszIgujiIAU4RNMVwhuiQ6H6wQl3XI4oy4FMHcCJPHcDS6J2A2EqUQpJhohQDexSef15DBCwAAAABJRU5ErkJggg==') repeat 53 | 54 | .symbol, 55 | .bullet, 56 | .link 57 | color: #000 58 | background: url('data:image/pngbase64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAKElEQVQIW2NkQAO7d+/+z4gsBhJwdXVlhAvCBECKwIIwAbhKZBUwBQA6hBpm5efZsgAAAABJRU5ErkJggg==') repeat 59 | 60 | .built_in, 61 | .builtin-name 62 | color: #000 63 | text-decoration: underline 64 | 65 | .meta 66 | color: #999 67 | font-weight: bold 68 | 69 | .deletion 70 | color: #fff 71 | background:url('data:image/pngbase64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAADCAYAAABS3WWCAAAAE0lEQVQIW2MMDQ39zzhz5kwIAQAyxweWgUHd1AAAAABJRU5ErkJggg==') repeat 72 | 73 | .addition 74 | color: #000 75 | background: url('data:image/pngbase64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAALUlEQVQYV2N89+7dfwYk8P79ewZBQUFkIQZGOiu6e/cuiptQHAPl0NtNxAQBAM97Oejj3Dg7AAAAAElFTkSuQmCC') repeat 76 | 77 | .emphasis 78 | font-style: italic 79 | 80 | .strong 81 | font-weight: bold 82 | -------------------------------------------------------------------------------- /layout/share/default.ejs: -------------------------------------------------------------------------------- 1 | <%=__('article.share')%> 2 | -------------------------------------------------------------------------------- /source/vendor/lightgallery/js/lg-fullscreen.min.js: -------------------------------------------------------------------------------- 1 | /**! 2 | * lg-fullscreen.js | 0.0.1 | August 1st 2016 3 | * http://sachinchoolur.github.io/lg-fullscreen.js 4 | * Copyright (c) 2016 Sachin N; 5 | * @license Apache 2.0 6 | */ 7 | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.LgFullscreen=e()}}(function(){var e,n,l;return function e(n,l,t){function r(o,c){if(!l[o]){if(!n[o]){var s="function"==typeof require&&require;if(!c&&s)return s(o,!0);if(u)return u(o,!0);var i=new Error("Cannot find module '"+o+"'");throw i.code="MODULE_NOT_FOUND",i}var f=l[o]={exports:{}};n[o][0].call(f.exports,function(e){var l=n[o][1][e];return r(l?l:e)},f,f.exports,e,n,l,t)}return l[o].exports}for(var u="function"==typeof require&&require,o=0;o1&&this.init(),this};r.prototype.init=function(){var e=this,t="",r,n,o;if(e.core.outer.querySelector(".lg").insertAdjacentHTML("beforeend",'
'),e.core.s.dynamic)for(var s=0;s
';else for(var i=0;i
':'
';n=e.core.outer.querySelector(".lg-pager-outer"),n.innerHTML=t,r=e.core.outer.querySelectorAll(".lg-pager-cont");for(var a=0;a This theme is ported from [AlxMedia](https://github.com/AlxMedia)'s the WordPress theme [Hueman](https://github.com/AlxMedia/hueman). 7 | 8 | > Special thanks to [AlxMedia](https://github.com/AlxMedia), who designed the original theme [Hueman](https://github.com/AlxMedia/hueman) for wordpress. 9 | 10 | #### [View Documentation](https://github.com/ppoffice/hexo-theme-hueman/wiki) 11 | :star: It is strongly recommended that you read the docs before using Hueman. 12 | 13 | ## Features 14 | 15 | ### Responsive Layout 16 | 17 | Hueman knows on what screen size you are browsering the website, and reorganize the layout to fit your device. 18 | 19 | ![](http://ppoffice.github.io/hexo-theme-hueman/gallery/responsive.jpg "") 20 | 21 | ### Categories inside Main Menu 22 | 23 | Hueman inserts your blog categories into main menu in the header section. You can enable/disable this feature in `menu` setting. 24 | 25 | ![](http://ppoffice.github.io/hexo-theme-hueman/gallery/main-menu.jpg "") 26 | 27 | ### Self-hosted Insite Search Engine 28 | With the help of [Insight Search](https://github.com/ppoffice/hexo-theme-hueman/wiki/Search#insight-search), you can search anything inside your site without any third-party plugin. 29 | 30 | ![](http://ppoffice.github.io/hexo-theme-hueman/gallery/insight-search.png "") 31 | 32 | ### Custom Comment Services 33 | Hueman supports several comment services, give you better choices to communicate with your readers. 34 | 35 | ![](http://ppoffice.github.io/hexo-theme-hueman/gallery/custom-comments.png "") 36 | 37 | ### Thumbnail 38 | 39 | Hueman uses the `thumbnail` [front-matter](https://hexo.io/docs/front-matter.html) option to set the thumbnail for a post. If the post does not have a `thumbnail` option, Hueman will find the first image in the post as the thumbnail. You can enable/disable this feature in `thumbnail` setting. 40 | 41 | ![](http://ppoffice.github.io/hexo-theme-hueman/gallery/thumbnail.jpg "") 42 | 43 | ### Code Highlight 44 | Hueman has more than 60 themes imported from [Highlight.js](https://github.com/isagalaev/highlight.js), and it is very easy to customize your own highlight theme. 45 | 46 | ![](http://ppoffice.github.io/hexo-theme-hueman/gallery/code-highlight.png "") 47 | 48 | ### lightgallery 49 | 50 | Hueman uses [lightgallery.js](https://sachinchoolur.github.io/lightgallery.js/) to showcase your photos. Just enable it in your configuration, and that's all! 51 | 52 | ![](http://ppoffice.github.io/hexo-theme-hueman/gallery/lightgallery.jpg "") 53 | 54 | ### Sidebar 55 | 56 | Hueman provides 6 built-in widgets: 57 | 58 | - recent_posts 59 | - category 60 | - archives 61 | - tag 62 | - tagcloud 63 | - links 64 | 65 | All of them are enabled by default. You can edit them in `widget` setting. 66 | 67 | ### And so many new features to be explored... 68 | [View Documentation](https://github.com/ppoffice/hexo-theme-hueman/wiki) 69 | -------------------------------------------------------------------------------- /source/css/style.styl: -------------------------------------------------------------------------------- 1 | @import "nib" 2 | @import "_variables" 3 | @import "_extend" 4 | 5 | global-reset() 6 | 7 | input, button 8 | margin: 0 9 | padding: 0 10 | &::-moz-focus-inner 11 | border: 0 12 | padding: 0 13 | 14 | html, body, #container 15 | height: 100% 16 | 17 | ::selection 18 | color: white 19 | background: color-theme 20 | 21 | body 22 | background: color-background 23 | font: font-size font-sans 24 | -webkit-text-size-adjust: 100% 25 | 26 | code 27 | margin: 0 2px 28 | color: #e96900 29 | padding: 3px 5px 30 | font-size: 0.8em 31 | border-radius: 2px 32 | font-family: font-mono 33 | background-color: #f8f8f8 34 | 35 | .container 36 | position: relative 37 | padding: 0 container-padding 38 | 39 | .container-inner 40 | clearfix() 41 | max-width: container-inner-max-width 42 | min-width: container-inner-min-width 43 | width: 100% 44 | margin: 0 auto 45 | 46 | .left, .alignleft 47 | float: left 48 | 49 | .right, .alignright 50 | float: right 51 | 52 | .clear 53 | clear: both 54 | 55 | .logo 56 | display: block 57 | padding: 10px 0 58 | width: logo-width 59 | height: logo-height 60 | background-image: url(logo-url) 61 | background-position: 0px 10px 62 | background-repeat: no-repeat 63 | background-size: logo-width logo-height 64 | 65 | .main-body 66 | margin-top: - nav-height 67 | background-color: color-main-background 68 | 69 | .main-body-inner 70 | clearfix() 71 | position: relative 72 | box-sizing: border-box 73 | box-shadow: rgba(0, 0, 0, 0.0980392) 0px 1px 1px 0px 74 | if sidebar is right 75 | padding-right: sidebar-width 76 | background: url(images/s-left.png) repeat-y right 0 77 | else 78 | padding-left: sidebar-width 79 | background: url(images/s-left.png) repeat-y left 0 80 | 81 | #main 82 | if sidebar is right 83 | float: left 84 | else 85 | float: right 86 | width: 100% 87 | box-sizing: border-box 88 | min-height: 600px 89 | .main-body-header 90 | background: #fff 91 | position: relative 92 | padding: 18px 30px 17px 93 | border-bottom: 1px solid color-border-light 94 | color: color-default + #111 95 | font-size: 16px 96 | font-weight: 600 97 | text-transform: uppercase 98 | line-height: 24px 99 | .page-title-link, i 100 | margin-right: 8px 101 | i 102 | font-weight: 400 103 | em, a 104 | @extend $block-caption 105 | color: color-grey 106 | .main-body-content 107 | clearfix() 108 | 109 | @import "_partial/header" 110 | @import "_partial/nav" 111 | @import "_partial/sidebar" 112 | @import "_partial/article" 113 | @import "_partial/comment" 114 | @import "_partial/archive" 115 | @import "_partial/footer" 116 | @import "_partial/assets" 117 | @import "_partial/insight" 118 | @import "_highlight/index" 119 | @import "_retina" 120 | @import "_responsive" 121 | -------------------------------------------------------------------------------- /source/css/_partial/insight.styl: -------------------------------------------------------------------------------- 1 | // Insight Search Styles 2 | ins-container-width = 540px 3 | ins-text-grey = #9a9a9a 4 | ins-border-grey = #e2e2e2 5 | ins-background-grey = #f7f7f7 6 | ins-background-theme = color-theme 7 | 8 | $ins-full-screen 9 | top: 0 10 | left: 0 11 | margin: 0 12 | width: 100% 13 | height: 100% 14 | 15 | .ins-search 16 | display: none 17 | &.show 18 | display: block 19 | 20 | .ins-selectable 21 | cursor: pointer 22 | 23 | .ins-search-mask, 24 | .ins-search-container 25 | position: fixed 26 | 27 | .ins-search-mask 28 | top: 0 29 | left: 0 30 | width: 100% 31 | height: 100% 32 | z-index: 100 33 | background: rgba(0,0,0,0.5) 34 | 35 | .ins-input-wrapper 36 | position: relative 37 | 38 | .ins-search-input 39 | width: 100% 40 | border: none 41 | outline: none 42 | font-size: 16px 43 | box-shadow: none 44 | font-weight: 200 45 | border-radius: 0 46 | background: white 47 | line-height: 20px 48 | box-sizing: border-box 49 | padding: 12px 28px 12px 20px 50 | border-bottom: 1px solid ins-border-grey 51 | font-family: "Microsoft Yahei Light", "Microsoft Yahei", Helvetica, Arial, sans-serif 52 | 53 | .ins-close 54 | top: 50% 55 | right: 6px 56 | width: 20px 57 | height: 20px 58 | font-size: 16px 59 | margin-top: -11px 60 | position: absolute 61 | text-align: center 62 | display: inline-block 63 | &:hover 64 | color: ins-background-theme 65 | 66 | .ins-search-container 67 | left: 50% 68 | top: 100px 69 | z-index: 101 70 | bottom: 100px 71 | box-sizing: border-box 72 | width: ins-container-width 73 | margin-left: -(ins-container-width/2) 74 | @media screen and (max-width: 559px), screen and (max-height: 479px) 75 | top: 0 76 | left: 0 77 | margin: 0 78 | width: 100% 79 | height: 100% 80 | background: ins-background-grey 81 | 82 | .ins-section-wrapper 83 | left: 0 84 | right: 0 85 | top: 45px 86 | bottom: 0 87 | overflow-y: auto 88 | position: absolute 89 | 90 | .ins-section-container 91 | position: relative 92 | background: ins-background-grey 93 | 94 | .ins-section 95 | font-size: 14px 96 | line-height: 16px 97 | .ins-section-header, 98 | .ins-search-item 99 | padding: 8px 15px 100 | .ins-section-header 101 | color: ins-text-grey 102 | border-bottom: 1px solid ins-border-grey 103 | .ins-slug 104 | margin-left: 5px 105 | color: ins-text-grey 106 | &:before 107 | content: '(' 108 | &:after 109 | content: ')' 110 | .ins-search-item 111 | header, 112 | .ins-search-preview 113 | overflow: hidden 114 | white-space: nowrap 115 | text-overflow: ellipsis 116 | header 117 | .fa 118 | margin-right: 8px 119 | .ins-search-preview 120 | height: 15px 121 | font-size: 12px 122 | color: ins-text-grey 123 | margin: 5px 0 0 20px 124 | &:hover, 125 | &.active 126 | color: white 127 | background: ins-background-theme 128 | .ins-slug, 129 | .ins-search-preview 130 | color: white -------------------------------------------------------------------------------- /source/vendor/lightgallery/js/lg-hash.js: -------------------------------------------------------------------------------- 1 | /**! 2 | * lg-hash.js | 0.0.1 | August 1st 2016 3 | * http://sachinchoolur.github.io/lg-hash.js 4 | * Copyright (c) 2016 Sachin N; 5 | * @license Apache 2.0 6 | */(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.LgHash = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o
'),e.progress(),e.core.s.autoplay&&e.startlAuto(),utils.on(e.el,"onDragstart.lgtm touchstart.lgtm",function(){e.interval&&(e.cancelAuto(),e.canceledOnTouch=!0)}),utils.on(e.el,"onDragend.lgtm touchend.lgtm onSlideClick.lgtm",function(){!e.interval&&e.canceledOnTouch&&(e.startlAuto(),e.canceledOnTouch=!1)})},o.prototype.progress=function(){var e=this,t,o;utils.on(e.el,"onBeforeSlide.lgtm",function(){e.core.s.progressBar&&e.fromAuto&&(t=e.core.outer.querySelector(".lg-progress-bar"),o=e.core.outer.querySelector(".lg-progress"),e.interval&&(o.removeAttribute("style"),utils.removeClass(t,"lg-start"),setTimeout(function(){utils.setVendor(o,"Transition","width "+(e.core.s.speed+e.core.s.pause)+"ms ease 0s"),utils.addClass(t,"lg-start")},20))),e.fromAuto||e.core.s.fourceAutoplay||e.cancelAuto(),e.fromAuto=!1})},o.prototype.controls=function(){var e=this,t='';e.core.outer.querySelector(this.core.s.appendAutoplayControlsTo).insertAdjacentHTML("beforeend",t),utils.on(e.core.outer.querySelector(".lg-autoplay-button"),"click.lg",function(){utils.hasClass(e.core.outer,"lg-show-autoplay")?(e.cancelAuto(),e.core.s.fourceAutoplay=!1):e.interval||(e.startlAuto(),e.core.s.fourceAutoplay=e.fourceAutoplayTemp)})},o.prototype.startlAuto=function(){var e=this;utils.setVendor(e.core.outer.querySelector(".lg-progress"),"Transition","width "+(e.core.s.speed+e.core.s.pause)+"ms ease 0s"),utils.addClass(e.core.outer,"lg-show-autoplay"),utils.addClass(e.core.outer.querySelector(".lg-progress-bar"),"lg-start"),e.interval=setInterval(function(){e.core.index+1 a:after 49 | content: "\f0d7" !important 50 | float: none 51 | margin-left: 6px 52 | font-size: 14px 53 | line-height: 1.2em 54 | opacity: 0.5 55 | font-family: FontAwesome 56 | display: inline-block 57 | &:hover 58 | & > a 59 | color: #fff 60 | background: rgba(0,0,0,0.1) 61 | .main-nav-list-link 62 | @extend $nav-link 63 | line-height: 20px 64 | padding: 15px 14px 65 | font-size: 16px 66 | &.current 67 | color: #fff 68 | .main-nav-list-child 69 | top: 100% 70 | display: none 71 | padding: 10px 0 72 | overflow: hidden 73 | position: absolute 74 | width: main-nav-child-width 75 | background: color-nav-background url(images/opacity-10.png) repeat 76 | li 77 | box-shadow: 0 1px 0 rgba(255,255,255,0.06) 78 | &:last-child 79 | box-shadow: none 80 | li, li a 81 | width: 100% 82 | display: block 83 | box-sizing: border-box 84 | #sub-nav 85 | float: right 86 | 87 | .search-form 88 | padding: 14px 15px 16px 89 | height: 50px 90 | overflow: hidden 91 | box-sizing: border-box 92 | &:before 93 | content: "\f002" 94 | margin-right: 8px 95 | color: color-nav-foreground 96 | font: normal normal normal 16px/1 FontAwesome 97 | 98 | .search-form-input, 99 | .search-form-input.ins-search-input, 100 | .search-form-input.st-ui-search-input, 101 | .search-form-input.st-default-search-input 102 | -webkit-appearance: textarea 103 | padding: 0 104 | width: 100px 105 | height: auto !important 106 | border: none !important 107 | outline: none !important 108 | background: none !important 109 | line-height: line-height 110 | transition: 0.2s ease-in 111 | font: 16px font-sans 112 | color: color-nav-foreground 113 | &:focus 114 | width: 200px 115 | &::-webkit-search-results-decoration 116 | &::-webkit-search-cancel-button 117 | -webkit-appearance: none 118 | 119 | .search-form-submit 120 | display: none -------------------------------------------------------------------------------- /source/vendor/lightgallery/js/lg-share.min.js: -------------------------------------------------------------------------------- 1 | /**! 2 | * lg-share.js | 0.0.1 | August 1st 2016 3 | * http://sachinchoolur.github.io/lg-share.js 4 | * Copyright (c) 2016 Sachin N; 5 | * @license Apache 2.0 6 | */ 7 | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.LgShare=e()}}(function(){var e,t,o;return function e(t,o,r){function n(s,l){if(!o[s]){if(!t[s]){var a="function"==typeof require&&require;if(!l&&a)return a(s,!0);if(i)return i(s,!0);var d=new Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var c=o[s]={exports:{}};t[s][0].call(c.exports,function(e){var o=t[s][1][e];return n(o?o:e)},c,c.exports,e,t,o,r)}return o[s].exports}for(var i="function"==typeof require&&require,s=0;s",this.core.outer.querySelector(".lg-toolbar").insertAdjacentHTML("beforeend",t),this.core.outer.querySelector(".lg").insertAdjacentHTML("beforeend",'
'),utils.on(document.getElementById("lg-share"),"click.lg",function(){utils.hasClass(e.core.outer,"lg-dropdown-active")?utils.removeClass(e.core.outer,"lg-dropdown-active"):utils.addClass(e.core.outer,"lg-dropdown-active")}),utils.on(document.getElementById("lg-dropdown-overlay"),"click.lg",function(){utils.removeClass(e.core.outer,"lg-dropdown-active")}),utils.on(e.core.el,"onAfterSlide.lgtm",function(t){setTimeout(function(){document.getElementById("lg-share-facebook").setAttribute("href","https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(e.core.items[t.detail.index].getAttribute("data-facebook-share-url")||window.location.href)),document.getElementById("lg-share-twitter").setAttribute("href","https://twitter.com/intent/tweet?text="+e.core.items[t.detail.index].getAttribute("data-tweet-text")+"&url="+encodeURIComponent(e.core.items[t.detail.index].getAttribute("data-twitter-share-url")||window.location.href)),document.getElementById("lg-share-googleplus").setAttribute("href","https://plus.google.com/share?url="+encodeURIComponent(e.core.items[t.detail.index].getAttribute("data-googleplus-share-url")||window.location.href)),document.getElementById("lg-share-pinterest").setAttribute("href","http://www.pinterest.com/pin/create/button/?url="+encodeURIComponent(e.core.items[t.detail.index].getAttribute("data-pinterest-share-url")||window.location.href)+"&media="+encodeURIComponent(e.core.items[t.detail.index].getAttribute("href")||e.core.items[t.detail.index].getAttribute("data-src"))+"&description="+e.core.items[t.detail.index].getAttribute("data-pinterest-text"))},100)})},o.prototype.destroy=function(){},window.lgModules.share=o})},{}]},{},[1])(1)}); -------------------------------------------------------------------------------- /source/js/main.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | // To top button 3 | $("#back-to-top").on('click', function () { 4 | $('body, html').animate({ scrollTop: 0 }, 600); 5 | }); 6 | 7 | // Nav bar toggle 8 | $('#main-nav-toggle').on('click', function () { 9 | $('.nav-container-inner').slideToggle(); 10 | }); 11 | 12 | // Caption 13 | $('.article-entry').each(function(i) { 14 | $(this).find('img').each(function() { 15 | if (this.alt) { 16 | $(this).after('' + this.alt + ''); 17 | } 18 | 19 | $(this).wrap(''); 20 | }); 21 | 22 | }); 23 | if (typeof lightGallery != 'undefined') { 24 | var options = { 25 | selector: '.gallery-item', 26 | }; 27 | lightGallery($('.article-entry')[0], options); 28 | lightGallery($('.article-gallery')[0], options); 29 | } 30 | 31 | // Sidebar expend 32 | $('#sidebar .sidebar-toggle').click(function () { 33 | if($('#sidebar').hasClass('expend')) { 34 | $('#sidebar').removeClass('expend'); 35 | } else { 36 | $('#sidebar').addClass('expend'); 37 | } 38 | }); 39 | 40 | 41 | // Remove extra main nav wrap 42 | $('.main-nav-list > li').unwrap(); 43 | 44 | // Highlight current nav item 45 | $('#main-nav > li > .main-nav-list-link').each(function () { 46 | if($('.page-title-link').length > 0){ 47 | if ($(this).html().toUpperCase() == $('.page-title-link').html().toUpperCase()) { 48 | $(this).addClass('current'); 49 | } else if ($(this).attr('href') == $('.page-title-link').attr('data-url')) { 50 | $(this).addClass('current'); 51 | } 52 | } 53 | }); 54 | 55 | // Auto hide main nav menus 56 | function autoHideMenus(){ 57 | var max_width = $('.nav-container-inner').width() - 10; 58 | var main_nav_width = $('#main-nav').width(); 59 | var sub_nav_width = $('#sub-nav').width(); 60 | if (main_nav_width + sub_nav_width > max_width) { 61 | // If more link not exists 62 | if ($('.main-nav-more').length == 0) { 63 | $([''].join('')).appendTo($('#main-nav')); 67 | // Bind hover event 68 | $('.main-nav-more').hover(function () { 69 | if($(window).width() < 480) { 70 | return; 71 | } 72 | $(this).children('.main-nav-list-child').slideDown('fast'); 73 | }, function () { 74 | if($(window).width() < 480) { 75 | return; 76 | } 77 | $(this).children('.main-nav-list-child').slideUp('fast'); 78 | }); 79 | } 80 | var child_count = $('#main-nav').children().length; 81 | for (var i = child_count - 2; i >= 0; i--) { 82 | var element = $('#main-nav').children().eq(i); 83 | if (main_nav_width + sub_nav_width > max_width) { 84 | element.prependTo($('.main-nav-more > ul')); 85 | main_nav_width = $('#main-nav').width(); 86 | } else { 87 | return; 88 | } 89 | } 90 | } 91 | // Nav bar is wide enough 92 | if ($('.main-nav-more').length > 0) { 93 | $('.main-nav-more > ul').children().appendTo($('#main-nav')); 94 | $('.main-nav-more').remove(); 95 | } 96 | } 97 | autoHideMenus(); 98 | 99 | $(window).resize(function () { 100 | autoHideMenus(); 101 | }); 102 | 103 | // Fold second-level menu 104 | $('.main-nav-list-item').hover(function () { 105 | if ($(window).width() < 480) { 106 | return; 107 | } 108 | $(this).children('.main-nav-list-child').slideDown('fast'); 109 | }, function () { 110 | if ($(window).width() < 480) { 111 | return; 112 | } 113 | $(this).children('.main-nav-list-child').slideUp('fast'); 114 | }); 115 | 116 | // Add second-level menu mark 117 | $('.main-nav-list-item').each(function () { 118 | if ($(this).find('.main-nav-list-child').length > 0) { 119 | $(this).addClass('top-level-menu'); 120 | } 121 | }); 122 | 123 | })(jQuery); 124 | --------------------------------------------------------------------------------