├── source ├── CNAME ├── img │ ├── blog.jpg │ ├── article │ │ ├── tag.png │ │ └── huweihuang_blog.png │ ├── icon_wechat.png │ ├── avatar │ │ └── ironman.png │ ├── header_img │ │ ├── 404.png │ │ ├── home.jpg │ │ ├── tag.png │ │ ├── about.jpg │ │ ├── home2.png │ │ ├── archive.jpg │ │ ├── home-bg-o.png │ │ └── archives-widget.jpg │ ├── article_header │ │ ├── article_bg.jpg │ │ └── article_header.png │ └── signature │ │ ├── BeanTechSign-black.png │ │ └── BeanTechSign-white.png ├── 404.md ├── tags │ └── index.md ├── _posts │ ├── hexo-theme-huweihuang │ │ └── Demo.png │ ├── hexo-theme-huweihuang_CN.md │ └── hexo-theme-huweihuang.md ├── archive │ └── index.md └── about │ └── index.md ├── .gitignore ├── scaffolds ├── draft.md ├── page.md └── post.md ├── themes └── huweihuang │ ├── languages_to_be_added │ ├── zh-TW.yml │ ├── zh-CN.yml │ ├── no.yml │ ├── ru.yml │ ├── es.yml │ ├── pl.yml │ ├── en.yml │ ├── de.yml │ └── default.yml │ ├── source │ ├── css │ │ ├── images │ │ │ ├── ironman.png │ │ │ └── rocket.png │ │ ├── signature.styl │ │ ├── widget.styl │ │ ├── toc.styl │ │ ├── rocket.styl │ │ ├── donate.css │ │ ├── archive.styl │ │ ├── highlight.styl │ │ ├── hux-blog.min.css │ │ ├── beantech.min.css │ │ └── beantech.css │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ └── js │ │ ├── totop.js │ │ ├── toc.js │ │ ├── hux-blog.min.js │ │ ├── jquery.tagcloud.js │ │ ├── hux-blog.js │ │ └── jquery.nav.js │ ├── layout │ ├── _widget │ │ ├── archive.ejs │ │ ├── category.ejs │ │ ├── friends-blog.ejs │ │ ├── recent-posts.ejs │ │ ├── featured-tags.ejs │ │ └── short-about.ejs │ ├── _partial │ │ ├── sidebar.ejs │ │ ├── pagination.ejs │ │ ├── toc.ejs │ │ ├── header.ejs │ │ ├── head.ejs │ │ ├── nav.ejs │ │ └── footer.ejs │ ├── 404.ejs │ ├── layout.ejs │ ├── tags.ejs │ ├── about.ejs │ ├── index.ejs │ ├── archive.ejs │ ├── page.ejs │ ├── keynote.ejs │ └── post.ejs │ ├── _config.yml │ └── LICENSE ├── .gitmodules ├── package.json ├── README.md ├── _config.yml └── LICENSE /source/CNAME: -------------------------------------------------------------------------------- 1 | huweihuang.top 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | public/ 2 | .vscode 3 | node_modules/ 4 | package-lock.json 5 | db.json -------------------------------------------------------------------------------- /source/img/blog.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/source/img/blog.jpg -------------------------------------------------------------------------------- /scaffolds/draft.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: {{ title }} 3 | subtitle: 4 | catalog: true 5 | header-img: 6 | tags: 7 | --- 8 | -------------------------------------------------------------------------------- /source/404.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: 404 3 | description: "你来到了没有知识的荒原" 4 | header-img: "/img/header_img/404.png" 5 | --- 6 | -------------------------------------------------------------------------------- /source/img/article/tag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/source/img/article/tag.png -------------------------------------------------------------------------------- /source/img/icon_wechat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/source/img/icon_wechat.png -------------------------------------------------------------------------------- /source/img/avatar/ironman.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/source/img/avatar/ironman.png -------------------------------------------------------------------------------- /source/img/header_img/404.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/source/img/header_img/404.png -------------------------------------------------------------------------------- /source/img/header_img/home.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/source/img/header_img/home.jpg -------------------------------------------------------------------------------- /source/img/header_img/tag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/source/img/header_img/tag.png -------------------------------------------------------------------------------- /themes/huweihuang/languages_to_be_added/zh-TW.yml: -------------------------------------------------------------------------------- 1 | prev: 上一頁 2 | next: 下一頁 3 | comment: 留言 4 | archive_a: 彙整 5 | archive_b: 彙整:%s -------------------------------------------------------------------------------- /scaffolds/page.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: {{ title }} 3 | date: {{ date }} 4 | description: 5 | header-img: "img/home-bg.jpg" 6 | --- 7 | -------------------------------------------------------------------------------- /source/img/header_img/about.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/source/img/header_img/about.jpg -------------------------------------------------------------------------------- /source/img/header_img/home2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/source/img/header_img/home2.png -------------------------------------------------------------------------------- /themes/huweihuang/languages_to_be_added/zh-CN.yml: -------------------------------------------------------------------------------- 1 | prev: 上一页 2 | next: 下一页 3 | comment: 留言 4 | archive_a: 归档 5 | archive_b: 归档:%s 6 | -------------------------------------------------------------------------------- /scaffolds/post.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: {{ title }} 3 | subtitle: 4 | date: {{ date }} 5 | catalog: true 6 | header-img: 7 | tags: 8 | --- 9 | -------------------------------------------------------------------------------- /source/img/header_img/archive.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/source/img/header_img/archive.jpg -------------------------------------------------------------------------------- /source/img/header_img/home-bg-o.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/source/img/header_img/home-bg-o.png -------------------------------------------------------------------------------- /source/img/article/huweihuang_blog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/source/img/article/huweihuang_blog.png -------------------------------------------------------------------------------- /source/img/article_header/article_bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/source/img/article_header/article_bg.jpg -------------------------------------------------------------------------------- /themes/huweihuang/languages_to_be_added/no.yml: -------------------------------------------------------------------------------- 1 | prev: Forrige 2 | next: Neste 3 | comment: Kommentarer 4 | archive_a: Arkiv 5 | archive_b: "Arkiv: %s" -------------------------------------------------------------------------------- /themes/huweihuang/languages_to_be_added/ru.yml: -------------------------------------------------------------------------------- 1 | prev: Назад 2 | next: Вперед 3 | comment: Комментарии 4 | archive_a: Архив 5 | archive_b: "Архив: %s" -------------------------------------------------------------------------------- /source/img/header_img/archives-widget.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/source/img/header_img/archives-widget.jpg -------------------------------------------------------------------------------- /source/tags/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: "tags" 3 | title: "Tags" 4 | description: "Hey, this is Tags." 5 | header-img: "/img/header_img/tag.png" 6 | --- 7 | -------------------------------------------------------------------------------- /source/_posts/hexo-theme-huweihuang/Demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/source/_posts/hexo-theme-huweihuang/Demo.png -------------------------------------------------------------------------------- /source/img/article_header/article_header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/source/img/article_header/article_header.png -------------------------------------------------------------------------------- /source/img/signature/BeanTechSign-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/source/img/signature/BeanTechSign-black.png -------------------------------------------------------------------------------- /source/img/signature/BeanTechSign-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/source/img/signature/BeanTechSign-white.png -------------------------------------------------------------------------------- /themes/huweihuang/languages_to_be_added/es.yml: -------------------------------------------------------------------------------- 1 | prev: Anterior 2 | next: Siguiente 3 | comment: Comentarios 4 | archive_a: Archivo 5 | archive_b: "Archivo: %s" -------------------------------------------------------------------------------- /themes/huweihuang/languages_to_be_added/pl.yml: -------------------------------------------------------------------------------- 1 | prev: Poprzednia 2 | next: Następna 3 | comment: Komentarze 4 | archive_a: Archiwa 5 | archive_b: "Archiwa: %s" -------------------------------------------------------------------------------- /themes/huweihuang/languages_to_be_added/en.yml: -------------------------------------------------------------------------------- 1 | prev: Older Posts 2 | next: Newer Posts 3 | comment: Comments 4 | archive_a: Archives 5 | archive_b: "Archives: %s" -------------------------------------------------------------------------------- /themes/huweihuang/source/css/images/ironman.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/themes/huweihuang/source/css/images/ironman.png -------------------------------------------------------------------------------- /themes/huweihuang/source/css/images/rocket.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/themes/huweihuang/source/css/images/rocket.png -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule ".deploy_git"] 2 | path = .deploy_git 3 | url = https://github.com/huweihuang/hexo-theme-huweihuang.git 4 | branch = gh-pages 5 | -------------------------------------------------------------------------------- /themes/huweihuang/languages_to_be_added/de.yml: -------------------------------------------------------------------------------- 1 | prev: Vorherige Seite 2 | next: Nächste Seite 3 | comment: Kommentare 4 | archive_a: Archiv 5 | archive_b: "Archiv: %s" -------------------------------------------------------------------------------- /themes/huweihuang/languages_to_be_added/default.yml: -------------------------------------------------------------------------------- 1 | prev: Older Posts 2 | next: Newer Posts 3 | comment: Comments 4 | archive_a: Archives 5 | archive_b: "Archives: %s" -------------------------------------------------------------------------------- /themes/huweihuang/source/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/themes/huweihuang/source/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /themes/huweihuang/source/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/themes/huweihuang/source/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /themes/huweihuang/source/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/themes/huweihuang/source/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /themes/huweihuang/source/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/HEAD/themes/huweihuang/source/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /themes/huweihuang/source/css/signature.styl: -------------------------------------------------------------------------------- 1 | #signature{ 2 | background-position: right bottom; 3 | background-repeat: no-repeat; 4 | padding: 20px; 5 | background-size: 80px 60px; 6 | } -------------------------------------------------------------------------------- /source/archive/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: "archive" 3 | title: "Archives" 4 | header-img: "/img/header_img/archive.jpg" 5 | comments: false 6 | date: 2017-09-20 20:49:56 7 | description: "Hey, this is archives" 8 | --- 9 | -------------------------------------------------------------------------------- /themes/huweihuang/layout/_widget/archive.ejs: -------------------------------------------------------------------------------- 1 | <% if (site.posts.length){ %> 2 |
<%= __('ARCHIVES') %>
3 |
4 | <%- list_archives({show_count: config.show_count, type: config.archive_type}) %> 5 |
6 | <% } %> -------------------------------------------------------------------------------- /themes/huweihuang/layout/_widget/category.ejs: -------------------------------------------------------------------------------- 1 | 2 | <% if (site.categories.length){ %> 3 |
<%= __('categories') %>
4 |
5 | <%- list_categories({show_count: theme.show_count}) %> 6 |
7 | <% } %> -------------------------------------------------------------------------------- /themes/huweihuang/_config.yml: -------------------------------------------------------------------------------- 1 | 2 | # Code Highlight theme 3 | # Available value: 4 | # normal | night | night yilia | night eighties | night blue | night bright 5 | # https://github.com/chriskempson/tomorrow-theme 6 | # night yilia - https://github.com/litten/hexo-theme-yilia 7 | highlight_theme: night eighties 8 | -------------------------------------------------------------------------------- /themes/huweihuang/layout/_widget/friends-blog.ejs: -------------------------------------------------------------------------------- 1 | 2 | <% if(config.friends) { %> 3 |
FRIENDS
4 | 10 | <% }%> -------------------------------------------------------------------------------- /themes/huweihuang/layout/_partial/sidebar.ejs: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /themes/huweihuang/layout/_partial/pagination.ejs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /themes/huweihuang/layout/_widget/recent-posts.ejs: -------------------------------------------------------------------------------- 1 | <% if (site.posts.length){ %> 2 |
<%= __('RECENT POSTS') %>
3 |
4 | 11 |
12 | <% } %> -------------------------------------------------------------------------------- /themes/huweihuang/source/js/totop.js: -------------------------------------------------------------------------------- 1 | $(window).scroll(function() { 2 | $(window).scrollTop() > $(window).height()*0.5 ? $("#rocket").addClass("show") : $("#rocket").removeClass("show"); 3 | }); 4 | 5 | $("#rocket").click(function() { 6 | $("#rocket").addClass("launch"); 7 | $("html, body").animate({ 8 | scrollTop: 0 9 | }, 1000, function() { 10 | $("#rocket").removeClass("show launch"); 11 | }); 12 | return false; 13 | }); -------------------------------------------------------------------------------- /themes/huweihuang/layout/_widget/featured-tags.ejs: -------------------------------------------------------------------------------- 1 | 2 | <% if(config['featured-tags']) { %> 3 |
4 | 5 |
FEATURED TAGS
6 |
7 | <% site.tags.map(function(tag){ %> 8 | <% if(tag.length > config['featured-condition-size']) { %> 9 | <%= tag.name %> 10 | <% } %> 11 | <% }) %> 12 |
13 |
14 | <% }%> -------------------------------------------------------------------------------- /themes/huweihuang/source/js/toc.js: -------------------------------------------------------------------------------- 1 | var toc = document.getElementById('toc') 2 | 3 | if (toc != null) { 4 | window.addEventListener("scroll", scrollcatelogHandler); 5 | var tocPosition = toc.offsetTop; 6 | var height_header = $("#signature").height(); 7 | function scrollcatelogHandler(e) { 8 | var event = e || window.event, 9 | target = event.target || event.srcElement; 10 | var scrollTop = document.documentElement.scrollTop || document.body.scrollTop; 11 | if (scrollTop > tocPosition -60) { 12 | toc.classList.add("toc-fixed"); 13 | } else { 14 | toc.classList.remove("toc-fixed"); 15 | } 16 | } 17 | } 18 | 19 | -------------------------------------------------------------------------------- /themes/huweihuang/layout/_partial/toc.ejs: -------------------------------------------------------------------------------- 1 | 2 | <% if (page.catalog) { %> 3 | <% if(!page.toc_nav_num){%> 4 | 9 | <% } %> 10 | <% if (is_post()){ %> 11 | 21 | <% } %> 22 | <% } %> -------------------------------------------------------------------------------- /source/about/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: "about" 3 | title: "About" 4 | date: 2017-10-03 10:48:33 5 | description: "走在成为极客的路上" 6 | header-img: "/img/header_img/about.jpg" 7 | aplayer: true 8 | fixed: false 9 | --- 10 | 11 | ### 一句话 12 | 13 | >Just do it ! (翻译:我只是个搞 IT的!哭笑脸) 14 | 15 | ### 关于我 16 | 17 | >一个莫名其妙的,喜欢敲代码,喜欢研究技术的,表面上高冷、不苟言笑的, 18 | > 19 | >偶尔又嬉皮笑脸,偶尔又特立独行的,双重性格的技术爱好者! 20 | 21 | ### 兴趣方向 22 | 23 | > 容器云(Docker、Kubernetes等)相关生态技术研究。 24 | 25 | ### 参与社区 26 | 27 | > CSDN博客:http://blog.csdn.net/huwh_ 28 | > 29 | > Github:https://github.com/huweihuang 30 | > 31 | > 阿里云栖社区:https://yq.aliyun.com/u/huweihuang 32 | > 33 | > DockOne社区:http://dockone.io/people/胡伟煌 34 | 35 | ### 联系我 36 | 37 | >Email: huweihuang@foxmail.com 38 | 39 | -------------------------------------------------------------------------------- /themes/huweihuang/source/css/widget.styl: -------------------------------------------------------------------------------- 1 | //These are added by Yu-Hsuan Yen 2 | //theme for widget: archive, category, recent-post. 3 | .widget 4 | color: #bfbfbf 5 | background: transparent 6 | 7 | a 8 | color: #bfbfbf 9 | text-decoration: none 10 | &:hover 11 | color: #0085a1 12 | text-decoration: none 13 | ul, ol 14 | ul, ol 15 | margin-left: 0 10px 16 | ul 17 | list-style: disc 18 | ol 19 | list-style: decimal 20 | 21 | .category-list-count 22 | .tag-list-count 23 | .archive-list-count 24 | padding-left: 5px 25 | color: color-grey 26 | font-size: 0.85em 27 | &:before 28 | content: "(" 29 | &:after 30 | content: ")" 31 | 32 | #avatar_pic 33 | max-height: 200px 34 | max-width: 200px -------------------------------------------------------------------------------- /themes/huweihuang/layout/404.ejs: -------------------------------------------------------------------------------- 1 | --- 2 | layout: layout 3 | --- 4 | 5 | 6 |
')"> 7 |
8 |
9 |
10 |
11 |

404

12 | 13 | <%= page.description || config.subtitle || "" %> 14 |
15 |
16 |
17 |
18 |
19 | 20 | 23 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hexo-site", 3 | "version": "0.0.0", 4 | "private": true, 5 | "hexo": { 6 | "version": "3.9.0" 7 | }, 8 | "dependencies": { 9 | "aplayer": "^1.10.1", 10 | "hexo": "^3.2.0", 11 | "hexo-deployer-git": "^0.1.0", 12 | "hexo-generator-archive": "^0.1.4", 13 | "hexo-generator-category": "^0.1.3", 14 | "hexo-generator-index": "^0.2.0", 15 | "hexo-generator-index-plus": "^1.0.0", 16 | "hexo-generator-seo-friendly-sitemap": "0.0.20", 17 | "hexo-generator-tag": "^0.2.0", 18 | "hexo-renderer-ejs": "^0.2.0", 19 | "hexo-renderer-kramed": "^0.1.4", 20 | "hexo-renderer-markdown-it": "^3.4.1", 21 | "hexo-renderer-mathjax": "^0.6.0", 22 | "hexo-renderer-stylus": "^0.3.1", 23 | "hexo-server": "^0.2.0", 24 | "hexo-toc-huweihuang": "^1.1.0" 25 | } 26 | } -------------------------------------------------------------------------------- /themes/huweihuang/layout/layout.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | <%- partial('_partial/head') %> 6 | 7 | 8 | 9 | <%- partial('_partial/header',{cache: true}) %> 10 | 11 | <%- partial('_partial/nav',{cache: true}) %> 12 | 13 | 14 | <%- body %> 15 | 16 | 17 | <%- partial('_partial/footer') %> 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /themes/huweihuang/source/js/hux-blog.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Hux Blog v1.0.0 (http://huxpro.github.io) 3 | * Copyright 2015 Hux 4 | */ 5 | 6 | $(function(){$("[data-toggle='tooltip']").tooltip()}),$(document).ready(function(){$("table").wrap("
"),$("table").addClass("table")}),$(document).ready(function(){$('iframe[src*="youtube.com"]').wrap('
'),$('iframe[src*="youtube.com"]').addClass("embed-responsive-item"),$('iframe[src*="vimeo.com"]').wrap('
'),$('iframe[src*="vimeo.com"]').addClass("embed-responsive-item")}),jQuery(document).ready(function(a){var b=1170;if(a(window).width()>b){var c=a(".navbar-custom").height();a(window).on("scroll",{previousTop:0},function(){var b=a(window).scrollTop();b0&&a(".navbar-custom").hasClass("is-fixed")?a(".navbar-custom").addClass("is-visible"):a(".navbar-custom").removeClass("is-visible is-fixed"):(a(".navbar-custom").removeClass("is-visible"),b>c&&!a(".navbar-custom").hasClass("is-fixed")&&a(".navbar-custom").addClass("is-fixed")),this.previousTop=b})}}); -------------------------------------------------------------------------------- /themes/huweihuang/source/css/toc.styl: -------------------------------------------------------------------------------- 1 | /*toc*/ 2 | .toc-article 3 | position: absolute 4 | border-left: rgba(88,88,88,0.1) 1px solid 5 | padding 1em 1em 0 1em 6 | margin-left: 1em 7 | 8 | .toc-title 9 | font-size 120% 10 | &:before 11 | font-family: "FontAwesome" 12 | content: "\f02e" 13 | margin-right: .5em 14 | 15 | @media screen and (max-width: 1100px) 16 | #toc 17 | display: none 18 | 19 | #toc 20 | width: inherit 21 | line-height 1em 22 | font-size 0.9em 23 | float left 24 | overflow: auto 25 | @media mq-mobile 26 | display: none 27 | @media mq-tablet 28 | display: none 29 | 30 | .toc-fixed 31 | position: fixed; 32 | top: 60px; 33 | margin-top: 0; 34 | max-height: 81%; 35 | overflow: hidden; 36 | z-index: 1; 37 | 38 | .toc-nav 39 | padding 0 40 | margin 1em 41 | line-height 1.8em 42 | li 43 | list-style-type: none 44 | a:hover 45 | background-color: transparent !important 46 | .active > a 47 | color: color-theme 48 | 49 | .toc-nav-link 50 | font-family: "futura-pt", Helvetica, Arial, "Hiragino Sans GB", "Hiragino Sans GB W3", Microsoft JhengHei, WenQuanYi Micro Hei, "Microsoft YaHei", sans-serif; 51 | color: color-link 52 | padding 1px !important 53 | &:hover 54 | color: color-theme 55 | 56 | .toc-nav-child 57 | margin-left -1.3em 58 | 59 | #sidebar 60 | display: inline; 61 | float: left; 62 | padding-left: 12px; 63 | -------------------------------------------------------------------------------- /themes/huweihuang/layout/tags.ejs: -------------------------------------------------------------------------------- 1 | --- 2 | layout: layout 3 | --- 4 | 5 |
6 |
7 |
8 | 9 |
10 | <% site.tags.map(function(tag){ %> 11 | <%= tag.name %> 12 | <% }) %> 13 |
14 | 15 | 16 | 17 | <% site.tags.map(function(tag){ %> 18 |
19 | 20 | <%= tag.name %> 21 | 22 | <% tag.posts.map(function(post){ %> 23 | 27 |
28 | 29 |

30 | <%- post.title || "Untitled" %> 31 |

32 | <% if (post.subtitle && post.subtitle.length) { %> 33 |

34 | <%- post.subtitle %> 35 |

36 | <% } %> 37 |
38 | 39 |
40 |
41 | <% }) %> 42 |
43 | <% }) %> 44 | 45 | 46 |
47 |
48 |
49 | -------------------------------------------------------------------------------- /themes/huweihuang/source/css/rocket.styl: -------------------------------------------------------------------------------- 1 | #rocket 2 | position: fixed; 3 | right: 50px; 4 | bottom: 50px; 5 | display: block; 6 | visibility: hidden; 7 | width: 42px; 8 | height: 43px; 9 | background: url(images/ironman.png) no-repeat 50% 0; 10 | opacity: 0; 11 | -webkit-transition: visibility 0.6s cubic-bezier(0.6, 0.04, 0.98, 0.335), opacity 0.6s cubic-bezier(0.6, 0.04, 0.98, 0.335), -webkit-transform 0.6s cubic-bezier(0.6, 0.04, 0.98, 0.335); 12 | -moz-transition: visibility 0.6s cubic-bezier(0.6, 0.04, 0.98, 0.335), opacity 0.6s cubic-bezier(0.6, 0.04, 0.98, 0.335), -moz-transform 0.6s cubic-bezier(0.6, 0.04, 0.98, 0.335); 13 | transition: visibility 0.6s cubic-bezier(0.6, 0.04, 0.98, 0.335), opacity 0.6s cubic-bezier(0.6, 0.04, 0.98, 0.335), transform 0.6s cubic-bezier(0.6, 0.04, 0.98, 0.335); 14 | @media mq-mobile 15 | right: 12px; 16 | bottom: 20px; 17 | #rocket i { 18 | display: block; 19 | margin-top: 48px; 20 | height: 14px; 21 | background: url(images/ironman.png) no-repeat 50% -20px; 22 | opacity: .5; 23 | -webkit-transition: -webkit-transform .2s; 24 | -moz-transition: -moz-transform .2s; 25 | transition: transform .2s; 26 | -webkit-transform-origin: 50% 0; 27 | -moz-transform-origin: 50% 0; 28 | transform-origin: 50% 0; } 29 | #rocket:hover { 30 | background-position: 50% -44px; } 31 | #rocket:hover i { 32 | background-position: 50% 100%; 33 | -webkit-animation: flaming .7s infinite; 34 | -moz-animation: flaming .7s infinite; 35 | animation: flaming .7s infinite; } 36 | #rocket.show { 37 | visibility: visible; 38 | opacity: 1; } 39 | #rocket.launch { 40 | background-position: 50% -44px; 41 | opacity: 0; 42 | -webkit-transform: translateY(-500px); 43 | -moz-transform: translateY(-500px); 44 | -ms-transform: translateY(-500px); 45 | transform: translateY(-500px); 46 | pointer-events: none; } 47 | #rocket.launch i { 48 | background-position: 50% 100%; 49 | -webkit-transform: scale(1.4, 3.2); 50 | -moz-transform: scale(1.4, 3.2); 51 | transform: scale(1.4, 3.2); } -------------------------------------------------------------------------------- /themes/huweihuang/layout/about.ejs: -------------------------------------------------------------------------------- 1 | --- 2 | layout: page 3 | --- 4 | 9 | 10 |
11 | <%- page.content %> 12 |
13 | 14 | <% if(config['duoshuo_username']) { %> 15 | 16 | 17 |
18 |
22 |
23 |
24 | 25 | 40 | 41 | 42 | <% } %> 43 | 44 | 45 | <% if(config['disqus_username']) { %> 46 |
47 |
48 | 49 |
50 |
51 | 52 | 64 | 65 | <% } %> 66 | 67 | -------------------------------------------------------------------------------- /themes/huweihuang/layout/index.ejs: -------------------------------------------------------------------------------- 1 | --- 2 | layout: page 3 | --- 4 | 5 | 6 | <% page.posts.each(function(post){ %> 7 |
8 | 9 | 10 |

11 | <% if (post.top){ %> 12 | 13 | 14 | 15 | 置顶 16 | 17 | 18 | <% } %> 19 | <%- post.title || "Untitled" %> 20 |

21 |

22 | <%- post.subtitle || "" %> 23 |

24 |
25 | <%- truncate(strip_html(post.content), {length: 200, omission: '...'}) %>... 26 |
27 |
28 | <% if (config.home_posts_tag){%> 29 | 33 |
34 | <% post.tags.forEach(function(tag){ %> 35 | <%= tag.name %> 36 | <% }) %> 37 |
38 | <%} else {%> 39 | 43 | <%}%> 44 | 45 |
46 |
47 | <% }); %> 48 | 49 | 50 | 51 | 52 | 64 | 65 | -------------------------------------------------------------------------------- /themes/huweihuang/layout/_partial/header.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 22 | 23 |
24 | 25 |
26 |
27 |
28 |
29 | <% if (is_post()) { %> 30 |
31 |
32 | <% page.tags.forEach(function(tag){ %> 33 | <%= tag.name %> 34 | <% }) %> 35 |
36 |

<%= page.title %>

37 |

<%= page.subtitle || "" %>

38 | 39 | Posted by <%- page.author || config.author %> on 40 | <%= page.date.format(config.date_format) %> 41 | 42 |
43 | <% } else { %> 44 |
45 |

<%= page.title || config.title %>

46 | 47 | <%= page.description || config.subtitle || "" %> 48 |
49 | <% } %> 50 | 51 | 52 |
53 |
54 |
55 |
56 |
57 | -------------------------------------------------------------------------------- /themes/huweihuang/layout/archive.ejs: -------------------------------------------------------------------------------- 1 | --- 2 | layout: page 3 | --- 4 | 5 | 6 |
7 |
8 |
9 | 10 | 11 | <% 12 | var years = {}; 13 | site.posts.sort('date').reverse().forEach(function(post){ 14 | var year = post.date.year() 15 | if(years[year]===undefined){ 16 | years[year] = []; 17 | } 18 | years[year].push(post); 19 | }); 20 | %> 21 | 22 | 23 | 24 | <% Object.keys(years).reverse().forEach(function(year){ %> 25 |
26 | 27 | <%= year %> 28 | 29 | 47 |
48 | <% }) %> 49 | 50 | 51 |
52 |
53 |
54 | 55 | 64 | 65 | 73 | -------------------------------------------------------------------------------- /themes/huweihuang/source/js/jquery.tagcloud.js: -------------------------------------------------------------------------------- 1 | (function($) { 2 | 3 | $.fn.tagcloud = function(options) { 4 | var opts = $.extend({}, $.fn.tagcloud.defaults, options); 5 | tagWeights = this.map(function(){ 6 | return $(this).attr("rel"); 7 | }); 8 | tagWeights = jQuery.makeArray(tagWeights).sort(compareWeights); 9 | lowest = tagWeights[0]; 10 | highest = tagWeights.pop(); 11 | range = highest - lowest; 12 | if(range === 0) {range = 1;} 13 | // Sizes 14 | if (opts.size) { 15 | fontIncr = (opts.size.end - opts.size.start)/range; 16 | } 17 | // Colors 18 | if (opts.color) { 19 | colorIncr = colorIncrement (opts.color, range); 20 | } 21 | return this.each(function() { 22 | weighting = $(this).attr("rel") - lowest; 23 | if (opts.size) { 24 | $(this).css({"font-size": opts.size.start + (weighting * fontIncr) + opts.size.unit}); 25 | } 26 | if (opts.color) { 27 | // change color to background-color 28 | $(this).css({"backgroundColor": tagColor(opts.color, colorIncr, weighting)}); 29 | } 30 | }); 31 | }; 32 | 33 | $.fn.tagcloud.defaults = { 34 | size: {start: 14, end: 18, unit: "pt"} 35 | }; 36 | 37 | // Converts hex to an RGB array 38 | function toRGB (code) { 39 | if (code.length == 4) { 40 | code = jQuery.map(/\w+/.exec(code), function(el) {return el + el; }).join(""); 41 | } 42 | hex = /(\w{2})(\w{2})(\w{2})/.exec(code); 43 | return [parseInt(hex[1], 16), parseInt(hex[2], 16), parseInt(hex[3], 16)]; 44 | } 45 | 46 | // Converts an RGB array to hex 47 | function toHex (ary) { 48 | return "#" + jQuery.map(ary, function(i) { 49 | hex = i.toString(16); 50 | hex = (hex.length == 1) ? "0" + hex : hex; 51 | return hex; 52 | }).join(""); 53 | } 54 | 55 | function colorIncrement (color, range) { 56 | return jQuery.map(toRGB(color.end), function(n, i) { 57 | return (n - toRGB(color.start)[i])/range; 58 | }); 59 | } 60 | 61 | function tagColor (color, increment, weighting) { 62 | rgb = jQuery.map(toRGB(color.start), function(n, i) { 63 | ref = Math.round(n + (increment[i] * weighting)); 64 | if (ref > 255) { 65 | ref = 255; 66 | } else { 67 | if (ref < 0) { 68 | ref = 0; 69 | } 70 | } 71 | return ref; 72 | }); 73 | return toHex(rgb); 74 | } 75 | 76 | function compareWeights(a, b) 77 | { 78 | return a - b; 79 | } 80 | 81 | })(jQuery); 82 | -------------------------------------------------------------------------------- /themes/huweihuang/source/js/hux-blog.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Clean Blog v1.0.0 (http://startbootstrap.com) 3 | * Copyright 2015 Start Bootstrap 4 | * Licensed under Apache 2.0 (https://github.com/IronSummitMedia/startbootstrap/blob/gh-pages/LICENSE) 5 | */ 6 | 7 | // Tooltip Init 8 | $(function() { 9 | $("[data-toggle='tooltip']").tooltip(); 10 | }); 11 | 12 | 13 | // make all images responsive 14 | /* 15 | * Unuse by Hux 16 | * actually only Portfolio-Pages can't use it and only post-img need it. 17 | * so I modify the _layout/post and CSS to make post-img responsive! 18 | */ 19 | // $(function() { 20 | // $("img").addClass("img-responsive"); 21 | // }); 22 | 23 | // responsive tables 24 | $(document).ready(function() { 25 | $("table").wrap("
"); 26 | $("table").addClass("table"); 27 | }); 28 | 29 | // responsive embed videos 30 | $(document).ready(function () { 31 | $('iframe[src*="youtube.com"]').wrap('
'); 32 | $('iframe[src*="youtube.com"]').addClass('embed-responsive-item'); 33 | $('iframe[src*="vimeo.com"]').wrap('
'); 34 | $('iframe[src*="vimeo.com"]').addClass('embed-responsive-item'); 35 | }); 36 | 37 | // Navigation Scripts to Show Header on Scroll-Up 38 | jQuery(document).ready(function($) { 39 | var MQL = 1170; 40 | 41 | //primary navigation slide-in effect 42 | if ($(window).width() > MQL) { 43 | var headerHeight = $('.navbar-custom').height(); 44 | $(window).on('scroll', { 45 | previousTop: 0 46 | }, 47 | function() { 48 | var currentTop = $(window).scrollTop(); 49 | //check if user is scrolling up 50 | if (currentTop < this.previousTop) { 51 | //if scrolling up... 52 | if (currentTop > 0 && $('.navbar-custom').hasClass('is-fixed')) { 53 | $('.navbar-custom').addClass('is-visible'); 54 | } else { 55 | $('.navbar-custom').removeClass('is-visible is-fixed'); 56 | } 57 | } else { 58 | //if scrolling down... 59 | $('.navbar-custom').removeClass('is-visible'); 60 | if (currentTop > headerHeight && !$('.navbar-custom').hasClass('is-fixed')) $('.navbar-custom').addClass('is-fixed'); 61 | } 62 | this.previousTop = currentTop; 63 | }); 64 | } 65 | }); 66 | -------------------------------------------------------------------------------- /themes/huweihuang/layout/_partial/head.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | <% if (page.title) { %> 13 | <%= page.title + ' - ' + config.SEOTitle %> 14 | <% } else{%> 15 | <%= config.SEOTitle %> 16 | <% } %> 17 | 18 | 19 | 20 | 21 | 22 | <%- css('css/bootstrap.min.css') %> 23 | 24 | 25 | <%- css('css/beantech.min.css')%> 26 | 27 | <%- css('css/donate.css')%> 28 | 29 | 30 | <%- css('css/highlight') %> 31 | 32 | <%- css('css/widget')%> 33 | 34 | <%- css('css/rocket')%> 35 | 36 | <%- css('css/signature')%> 37 | 38 | <%- css('css/toc')%> 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 51 | 52 | 53 | 54 | 55 | 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /themes/huweihuang/source/css/donate.css: -------------------------------------------------------------------------------- 1 | .reward { 2 | padding: 5px 0 3 | } 4 | 5 | .reward .reward-notice { 6 | font-size: 14px; 7 | line-height: 14px; 8 | margin: 15px auto; 9 | text-align: center 10 | } 11 | 12 | .reward .reward-button { 13 | font-size: 28px; 14 | line-height: 58px; 15 | position: relative; 16 | display: block; 17 | width: 60px; 18 | height: 60px; 19 | margin: 0 auto; 20 | padding: 0; 21 | -webkit-user-select: none; 22 | text-align: center; 23 | vertical-align: middle; 24 | color: #fff; 25 | border: 1px solid #f1b60e; 26 | border-radius: 50%; 27 | background: #fccd60; 28 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fccd60), color-stop(100%, #fbae12), color-stop(100%, #2989d8), color-stop(100%, #207cca)); 29 | background: -webkit-linear-gradient(top, #fccd60 0, #fbae12 100%, #2989d8 100%, #207cca 100%); 30 | background: linear-gradient(to bottom, #fccd60 0, #fbae12 100%, #2989d8 100%, #207cca 100%) 31 | } 32 | 33 | .reward .reward-code { 34 | position: absolute; 35 | top: -220px; 36 | left: 50%; 37 | display: none; 38 | width: 350px; 39 | height: 200px; 40 | margin-left: -175px; 41 | padding: 15px; 42 | border: 1px solid #e6e6e6; 43 | background: #fff; 44 | box-shadow: 0 1px 1px 1px #efefef 45 | } 46 | 47 | .reward .reward-button:hover .reward-code { 48 | display: block 49 | } 50 | 51 | .reward .reward-code span { 52 | display: inline-block; 53 | width: 150px; 54 | height: 150px 55 | } 56 | 57 | .reward .reward-code span.alipay-code { 58 | float: left 59 | } 60 | 61 | .reward .reward-code span.alipay-code a { 62 | padding: 0 63 | } 64 | 65 | .reward .reward-code span.wechat-code { 66 | float: right 67 | } 68 | 69 | .reward .reward-code img { 70 | display: inline-block; 71 | float: left; 72 | width: 150px; 73 | height: 150px; 74 | margin: 0 auto; 75 | border: 0 76 | } 77 | 78 | .reward .reward-code b { 79 | font-size: 14px; 80 | line-height: 26px; 81 | display: block; 82 | margin: 0; 83 | text-align: center; 84 | color: #666 85 | } 86 | 87 | .reward .reward-code b.notice { 88 | line-height: 2rem; 89 | margin-top: -1rem; 90 | color: #999 91 | } 92 | 93 | .reward .reward-code:after, 94 | .reward .reward-code:before { 95 | position: absolute; 96 | content: ''; 97 | border: 10px solid transparent 98 | } 99 | 100 | .reward .reward-code:after { 101 | bottom: -19px; 102 | left: 50%; 103 | margin-left: -10px; 104 | border-top-color: #fff 105 | } 106 | 107 | .reward .reward-code:before { 108 | bottom: -20px; 109 | left: 50%; 110 | margin-left: -10px; 111 | border-top-color: #e6e6e6 112 | } 113 | -------------------------------------------------------------------------------- /themes/huweihuang/layout/_partial/nav.ejs: -------------------------------------------------------------------------------- 1 | 2 | 44 | 72 | -------------------------------------------------------------------------------- /themes/huweihuang/layout/_widget/short-about.ejs: -------------------------------------------------------------------------------- 1 | 2 |
3 |
ABOUT ME
4 |
5 | 6 | <% if(config['sidebar-avatar']) { %> 7 | 8 | <% } %> 9 | 10 | <% if(config['sidebar-about-description']) { %> 11 |

<%= config['sidebar-about-description'] %>

12 | <% }%> 13 | 14 | 15 | 92 |
93 |
94 | -------------------------------------------------------------------------------- /themes/huweihuang/source/css/archive.styl: -------------------------------------------------------------------------------- 1 | $block-caption 2 | text-decoration: none 3 | text-transform: uppercase 4 | letter-spacing: 2px 5 | color: color-grey 6 | margin-bottom: 1em 7 | margin-left: 5px 8 | line-height: 1em 9 | font-weight: bold 10 | 11 | // Colors 12 | color-default = #606060 13 | color-grey = #999 14 | color-black = #33363b 15 | color-border = #eef1f8 16 | color-link = #0e83cd 17 | color-link-bg = #f9fbfd 18 | color-link-hover = color-theme 19 | color-background = #fff 20 | color-code-background = #f8f8f8 21 | color-sidebar-text = #777 22 | color-widget-background = #ddd 23 | color-widget-border = rgba(58,61,98,0.1) 24 | color-footer-background = #f0f0f0 25 | color-mobile-nav-background = #191919 26 | color-theme-blue-twitter = #00aced 27 | color-theme-red = #ff7e79 28 | color-theme-orange = #fb6d19 29 | color-theme-green = #39aa56 30 | color-theme-green-light = #42b983 31 | color-theme-black = #414141 32 | 33 | // Theme 34 | color-theme = color-theme-orange 35 | 36 | //Layout 37 | block-margin = 50px 38 | 39 | //Font 40 | font-futura-pt = "futura-pt", Helvetica, Arial, "Hiragino Sans GB", "Hiragino Sans GB W3", Microsoft JhengHei, WenQuanYi Micro Hei, "Microsoft YaHei", sans-serif 41 | line-height = 1.6em 42 | 43 | .archives-wrap 44 | margin: block-margin 0 45 | 46 | .archives 47 | clearfix() 48 | margin-left: 2em 49 | 50 | .archive-year-wrap 51 | margin-bottom: 1em 52 | h1 53 | font-size: 1.3em 54 | 55 | .archive-year 56 | @extend $block-caption 57 | color: color-theme 58 | 59 | .archive-year:hover 60 | color: color-theme 61 | 62 | .archive-year:before 63 | font-family: "FontAwesome" 64 | content: "\f273" 65 | margin-right: .2em 66 | 67 | .archives-tags-wrap 68 | margin: block-margin 0 69 | blockquote 70 | padding: 1em 71 | margin: 4em 0 0 0 72 | font-size: 1.2em 73 | font-weight: bold 74 | color: color-black 75 | text-align: center; 76 | border-left: 0px solid color-theme 77 | background: rgba(208,211,248,0.15) 78 | a 79 | color: color-black 80 | margin: .2em 81 | &:hover 82 | color: color-theme 83 | 84 | .archive-tag 85 | @extend $block-caption 86 | text-transform: none; 87 | color: color-theme 88 | 89 | .archive-tag:hover 90 | color: color-theme 91 | 92 | .archive-tag:before 93 | font-family: "FontAwesome" 94 | content: "\f02c" 95 | margin-right: .2em 96 | 97 | .archives-category-wrap 98 | margin: block-margin 0 99 | blockquote 100 | padding: 1em 101 | font-size: 1.1em 102 | font-weight: bold 103 | line-height: 1.7em; 104 | color: color-theme 105 | text-align: left; 106 | border-left: 0px solid color-theme 107 | background: rgba(208,211,248,0.15) 108 | a 109 | color: color-black 110 | margin: .2em 111 | &:hover 112 | color: color-theme 113 | &:before 114 | font-family: "FontAwesome" 115 | content: "\f0da" 116 | margin-right: .5em 117 | 118 | .archive-category 119 | @extend $block-caption 120 | text-transform: none; 121 | color: color-theme 122 | 123 | .archive-category:before 124 | font-family: "FontAwesome" 125 | content: "\f07c" 126 | margin-right: .3em 127 | 128 | .archives 129 | column-gap: 10px 130 | @media mq-tablet 131 | column-count: 1 132 | @media mq-normal 133 | column-count: 1 134 | 135 | .archive-article 136 | avoid-column-break() 137 | 138 | .archive-article-inner 139 | padding: 0px 140 | margin-bottom: 0px 141 | 142 | .archive-article-title 143 | text-decoration: none 144 | color: color-default 145 | transition: color 0.2s 146 | line-height: line-height 147 | border-left: 1px solid color-theme; 148 | padding-left: 15px; 149 | &:hover 150 | color: color-link-hover 151 | 152 | .archive-article-footer 153 | margin-top: 1em 154 | 155 | .archive-article-date 156 | min-width: 85px 157 | float: left 158 | color: #c7c7c7 159 | text-decoration: none 160 | line-height: 1.6em 161 | margin-right: 15px 162 | display: block 163 | font-size: 1.1em 164 | font-family: font-futura-pt 165 | 166 | .archive-article-date:hover 167 | color: color-theme -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | > Ported Theme of [Hux Blog](https://github.com/Huxpro/huxpro.github.io), Thank [Huxpro](https://github.com/Huxpro) for designing such a flawless theme. 2 | > 3 | > This HuWeihuang theme created by [HuWeihuang](http://www.huweihuang.com/) modified from the original Porter [YuHsuan](https://github.com/YenYuHsuan/hexo-theme-beantech). 4 | > 5 | > This theme has been published to the [hexo theme list](https://hexo.io/themes/). 6 | 7 | # Live Demo 8 | 9 | Hu Weihuang Blog : [www.huweihuang.com](http://www.huweihuang.com/) 10 | 11 | ![Theme_HuWeihuang](https://res.cloudinary.com/dqxtn0ick/image/upload/v1553666111/blog/blog.jpg) 12 | 13 | # Copyright Notice 14 | 15 | **You can free to use this theme, but you need to keep the following copyright notice on the website.** 16 | 17 | 18 | 19 | # Install Hexo 20 | 21 | Install Node.js and Git 22 | 23 | ```shell 24 | #For Mac 25 | brew install node 26 | brew install git 27 | ``` 28 | 29 | Install hexo 30 | 31 | ```shell 32 | npm install hexo-cli -g 33 | 34 | #For more:https://hexo.io/zh-cn/index.html 35 | ``` 36 | 37 | # Theme Usage 38 | 39 | ## Init 40 | 41 | ```bash 42 | git clone https://github.com/huweihuang/hexo-theme-huweihuang.git ./hexo-huweihuang 43 | cd hexo-huweihuang 44 | npm install 45 | ``` 46 | 47 | ## Modify 48 | Modify `_config.yml` file with your own info. 49 | Especially the section: 50 | ### Deployment 51 | Replace to your own repo! 52 | ```yml 53 | deploy: 54 | type: git 55 | repo: https://github.com// 56 | branch: 57 | ``` 58 | 59 | ### Sidebar settings 60 | Copy your avatar image to `/img/` and modify the `_config.yml`: 61 | ```yml 62 | sidebar: true # whether or not using Sidebar. 63 | sidebar-about-description: "" 64 | sidebar-avatar: img/ 65 | ``` 66 | and activate your personal widget you like 67 | ```yml 68 | widgets: # here are widget you can use, you can comment out 69 | - featured-tags 70 | - short-about 71 | - recent-posts 72 | - friends-blog 73 | - archive 74 | - category 75 | ``` 76 | if you want to add sidebar widget, please add at `layout/_widget`. 77 | ### Signature Setup 78 | Copy your signature image to `/img/signature` and modify the `_config.yml`: 79 | ```yml 80 | signature: true # show signature 81 | signature-img: img/signature/ 82 | ``` 83 | ### Go to top icon Setup 84 | My icon is using iron man, you can change to your own icon at `css/image`. 85 | 86 | ### Post tag 87 | You can decide to show post tags or not. 88 | ```yml 89 | home_posts_tag: true 90 | ``` 91 | ![tag](https://raw.githubusercontent.com/huweihuang/hexo-theme-huweihuang/master/source/img/article/tag.png) 92 | ### Markdown render 93 | My markdown render engine plugin is [hexo-renderer-markdown-it](https://github.com/celsomiranda/hexo-renderer-markdown-it). 94 | ```yml 95 | # Markdown-it config 96 | ## Docs: https://github.com/celsomiranda/hexo-renderer-markdown-it/wiki 97 | markdown: 98 | render: 99 | html: true 100 | xhtmlOut: false 101 | breaks: true 102 | linkify: true 103 | typographer: true 104 | quotes: '“”‘’' 105 | ``` 106 | and if you want to change the header anchor 'ℬ', you can go to `layout/post.ejs` to change it. 107 | ```javascript 108 | async("https://cdn.bootcss.com/anchor-js/1.1.1/anchor.min.js",function(){ 109 | anchors.options = { 110 | visible: 'hover', 111 | placement: 'left', 112 | icon: ℬ // this is the header anchor "unicode" icon 113 | }; 114 | ``` 115 | 116 | ## Hexo Basics 117 | Some hexo command: 118 | ```bash 119 | hexo new post "" # you can change post to another layout if you want 120 | hexo clean && hexo generate # generate the static file 121 | hexo server # run hexo in local environment 122 | hexo deploy # hexo will push the static files automatically into the specific branch(gh-pages) of your repo! 123 | ``` 124 | 125 | # Have fun ^_^ 126 | Please Star this Project if you like it! Follow would also be appreciated! 127 | Peace! 128 | -------------------------------------------------------------------------------- /source/_posts/hexo-theme-huweihuang_CN.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "[Hexo] 主题 HuWeihuang" 3 | catalog: true 4 | toc_nav_num: true 5 | date: 2017-09-10 10:51:24 6 | subtitle: "This is hexo theme Demo." 7 | header-img: "/img/article_header/article_header.png" 8 | tags: 9 | - Hexo 10 | catagories: 11 | - Hexo 12 | updateDate: 2018-12-23 22:26:24 13 | top: 1 14 | 15 | --- 16 | > This HuWeihuang theme created by [HuWeihuang](http://www.huweihuang.com/) modified from the original Porter [YuHsuan](https://github.com/YenYuHsuan/hexo-theme-beantech) 17 | 18 | # 示例 19 | 20 | Hu Weihuang Blog : [www.huweihuang.com](http://www.huweihuang.com/) 21 | 22 | ![Theme HuWeihuang](https://res.cloudinary.com/dqxtn0ick/image/upload/v1553666111/blog/blog.jpg) 23 | 24 | # 安装Hexo 25 | 26 | Install Node.js and Git 27 | 28 | ```shell 29 | #For Mac 30 | brew install node 31 | brew install git 32 | ``` 33 | 34 | Install hexo 35 | 36 | ```shell 37 | npm install hexo-cli -g 38 | 39 | #For more:https://hexo.io/zh-cn/index.html 40 | ``` 41 | 42 | # 使用说明 43 | 44 | ## 下载安装 45 | 46 | --- 47 | ```bash 48 | git clone https://github.com/huweihuang/hexo-theme-huweihuang.git ./hexo-huweihuang 49 | cd hexo-huweihuang 50 | npm install 51 | ``` 52 | 53 | ## 修改 54 | --- 55 | Modify `_config.yml` file with your own info. 56 | Especially the section: 57 | ### Deployment 58 | Replace to your own repo! 59 | ```yml 60 | deploy: 61 | type: git 62 | repo: https://github.com// 63 | branch: 64 | ``` 65 | 66 | ### Sidebar settings 67 | Copy your avatar image to `/img/` and modify the `_config.yml`: 68 | ```yml 69 | sidebar: true # whether or not using Sidebar. 70 | sidebar-about-description: "" 71 | sidebar-avatar: img/ 72 | ``` 73 | and activate your personal widget you like 74 | ```yml 75 | widgets: # here are widget you can use, you can comment out 76 | - featured-tags 77 | - short-about 78 | - recent-posts 79 | - friends-blog 80 | - archive 81 | - category 82 | ``` 83 | if you want to add sidebar widget, please add at `layout/_widget`. 84 | ### Signature Setup 85 | Copy your signature image to `/img/signature` and modify the `_config.yml`: 86 | ```yml 87 | signature: true # show signature 88 | signature-img: img/signature/ 89 | ``` 90 | ### Go to top icon Setup 91 | My icon is using iron man, you can change to your own icon at `css/image`. 92 | 93 | ### Post tag 94 | You can decide to show post tags or not. 95 | ```yml 96 | home_posts_tag: true 97 | ``` 98 | ![home_posts_tag-true](/img/article/tag.png) 99 | ### Markdown render 100 | My markdown render engine plugin is [hexo-renderer-markdown-it](https://github.com/celsomiranda/hexo-renderer-markdown-it). 101 | ```yml 102 | # Markdown-it config 103 | ## Docs: https://github.com/celsomiranda/hexo-renderer-markdown-it/wiki 104 | markdown: 105 | render: 106 | html: true 107 | xhtmlOut: false 108 | breaks: true 109 | linkify: true 110 | typographer: true 111 | quotes: '“”‘’' 112 | ``` 113 | and if you want to change the header anchor 'ℬ', you can go to `layout/post.ejs` to change it. 114 | ```javascript 115 | async("https://cdn.bootcss.com/anchor-js/1.1.1/anchor.min.js",function(){ 116 | anchors.options = { 117 | visible: 'hover', 118 | placement: 'left', 119 | icon: ℬ // this is the header anchor "unicode" icon 120 | }; 121 | ``` 122 | 123 | ## Hexo命令操作 124 | --- 125 | Some hexo command: 126 | ```bash 127 | hexo new post "" # you can change post to another layout if you want 128 | hexo clean && hexo generate # generate the static file 129 | hexo server # run hexo in local environment 130 | hexo deploy # hexo will push the static files automatically into the specific branch(gh-pages) of your repo! 131 | ``` 132 | 133 | # Star & Follow 134 | --- 135 | 136 | 137 | 138 | 139 | Please Star this Project if you like it! Follow would also be appreciated! 140 | Peace! 141 | -------------------------------------------------------------------------------- /source/_posts/hexo-theme-huweihuang.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "[Hexo] Theme HuWeihuang" 3 | catalog: true 4 | toc_nav_num: true 5 | date: 2017-09-18 10:51:24 6 | subtitle: "This is hexo theme Demo." 7 | header-img: "/img/article_header/article_header.png" 8 | tags: 9 | - Hexo 10 | catagories: 11 | - Hexo 12 | updateDate: 2018-12-23 22:26:24 13 | top: 1 14 | 15 | --- 16 | > This HuWeihuang theme created by [HuWeihuang](http://www.huweihuang.com/) modified from the original Porter [YuHsuan](https://github.com/YenYuHsuan/hexo-theme-beantech) 17 | 18 | # Live Demo 19 | 20 | Hu Weihuang Blog : [www.huweihuang.com](http://www.huweihuang.com/) 21 | 22 | ![Theme HuWeihuang](https://res.cloudinary.com/dqxtn0ick/image/upload/v1553666111/blog/blog.jpg) 23 | 24 | # Install Hexo 25 | 26 | Install Node.js and Git 27 | 28 | ```shell 29 | #For Mac 30 | brew install node 31 | brew install git 32 | ``` 33 | 34 | Install hexo 35 | 36 | ```shell 37 | npm install hexo-cli -g 38 | 39 | #For more:https://hexo.io/zh-cn/index.html 40 | ``` 41 | 42 | # Theme Usage 43 | 44 | ## Init 45 | 46 | --- 47 | ```bash 48 | git clone https://github.com/huweihuang/hexo-theme-huweihuang.git ./hexo-huweihuang 49 | cd hexo-huweihuang 50 | npm install 51 | ``` 52 | 53 | ## Modify 54 | --- 55 | Modify `_config.yml` file with your own info. 56 | Especially the section: 57 | ### Deployment 58 | Replace to your own repo! 59 | ```yml 60 | deploy: 61 | type: git 62 | repo: https://github.com// 63 | branch: 64 | ``` 65 | 66 | ### Sidebar settings 67 | Copy your avatar image to `/img/` and modify the `_config.yml`: 68 | ```yml 69 | sidebar: true # whether or not using Sidebar. 70 | sidebar-about-description: "" 71 | sidebar-avatar: img/ 72 | ``` 73 | and activate your personal widget you like 74 | ```yml 75 | widgets: # here are widget you can use, you can comment out 76 | - featured-tags 77 | - short-about 78 | - recent-posts 79 | - friends-blog 80 | - archive 81 | - category 82 | ``` 83 | if you want to add sidebar widget, please add at `layout/_widget`. 84 | ### Signature Setup 85 | Copy your signature image to `/img/signature` and modify the `_config.yml`: 86 | ```yml 87 | signature: true # show signature 88 | signature-img: img/signature/ 89 | ``` 90 | ### Go to top icon Setup 91 | My icon is using iron man, you can change to your own icon at `css/image`. 92 | 93 | ### Post tag 94 | You can decide to show post tags or not. 95 | ```yml 96 | home_posts_tag: true 97 | ``` 98 | ![home_posts_tag-true](/img/article/tag.png) 99 | ### Markdown render 100 | My markdown render engine plugin is [hexo-renderer-markdown-it](https://github.com/celsomiranda/hexo-renderer-markdown-it). 101 | ```yml 102 | # Markdown-it config 103 | ## Docs: https://github.com/celsomiranda/hexo-renderer-markdown-it/wiki 104 | markdown: 105 | render: 106 | html: true 107 | xhtmlOut: false 108 | breaks: true 109 | linkify: true 110 | typographer: true 111 | quotes: '“”‘’' 112 | ``` 113 | and if you want to change the header anchor 'ℬ', you can go to `layout/post.ejs` to change it. 114 | ```javascript 115 | async("https://cdn.bootcss.com/anchor-js/1.1.1/anchor.min.js",function(){ 116 | anchors.options = { 117 | visible: 'hover', 118 | placement: 'left', 119 | icon: ℬ // this is the header anchor "unicode" icon 120 | }; 121 | ``` 122 | 123 | ## Hexo Basics 124 | --- 125 | Some hexo command: 126 | ```bash 127 | hexo new post "" # you can change post to another layout if you want 128 | hexo clean && hexo generate # generate the static file 129 | hexo server # run hexo in local environment 130 | hexo deploy # hexo will push the static files automatically into the specific branch(gh-pages) of your repo! 131 | ``` 132 | 133 | # Have fun ^_^ 134 | --- 135 | 136 | 137 | 138 | 139 | Please Star this Project if you like it! Follow would also be appreciated! 140 | Peace! 141 | -------------------------------------------------------------------------------- /themes/huweihuang/source/js/jquery.nav.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery One Page Nav Plugin 3 | * http://github.com/davist11/jQuery-One-Page-Nav 4 | * 5 | * Copyright (c) 2010 Trevor Davis (http://trevordavis.net) 6 | * Dual licensed under the MIT and GPL licenses. 7 | * Uses the same license as jQuery, see: 8 | * http://jquery.org/license 9 | * 10 | * @version 3.0.0 11 | * 12 | * Example usage: 13 | * $('#nav').onePageNav({ 14 | * currentClass: 'current', 15 | * changeHash: false, 16 | * scrollSpeed: 750 17 | * }); 18 | */ 19 | 20 | ;(function($, window, document, undefined){ 21 | 22 | // our plugin constructor 23 | var OnePageNav = function(elem, options){ 24 | this.elem = elem; 25 | this.$elem = $(elem); 26 | this.options = options; 27 | this.metadata = this.$elem.data('plugin-options'); 28 | this.$win = $(window); 29 | this.sections = {}; 30 | this.didScroll = false; 31 | this.$doc = $(document); 32 | this.docHeight = this.$doc.height(); 33 | }; 34 | 35 | // the plugin prototype 36 | OnePageNav.prototype = { 37 | defaults: { 38 | navItems: 'a', 39 | currentClass: 'current', 40 | changeHash: false, 41 | easing: 'swing', 42 | filter: '', 43 | scrollSpeed: 750, 44 | scrollThreshold: 0.5, 45 | begin: false, 46 | end: false, 47 | scrollChange: false, 48 | padding: 0 49 | }, 50 | 51 | init: function() { 52 | // Introduce defaults that can be extended either 53 | // globally or using an object literal. 54 | this.config = $.extend({}, this.defaults, this.options, this.metadata); 55 | 56 | this.$nav = this.$elem.find(this.config.navItems); 57 | 58 | //Filter any links out of the nav 59 | if(this.config.filter !== '') { 60 | this.$nav = this.$nav.filter(this.config.filter); 61 | } 62 | 63 | //Handle clicks on the nav 64 | this.$nav.on('click.onePageNav', $.proxy(this.handleClick, this)); 65 | 66 | //Get the section positions 67 | this.getPositions(); 68 | 69 | //Handle scroll changes 70 | this.bindInterval(); 71 | 72 | //Update the positions on resize too 73 | this.$win.on('resize.onePageNav', $.proxy(this.getPositions, this)); 74 | 75 | return this; 76 | }, 77 | 78 | adjustNav: function(self, $parent) { 79 | self.$elem.find('.' + self.config.currentClass).removeClass(self.config.currentClass); 80 | $parent.addClass(self.config.currentClass); 81 | }, 82 | 83 | bindInterval: function() { 84 | var self = this; 85 | var docHeight; 86 | 87 | self.$win.on('scroll.onePageNav', function() { 88 | self.didScroll = true; 89 | }); 90 | 91 | self.t = setInterval(function() { 92 | docHeight = self.$doc.height(); 93 | 94 | //If it was scrolled 95 | if(self.didScroll) { 96 | self.didScroll = false; 97 | self.scrollChange(); 98 | } 99 | 100 | //If the document height changes 101 | if(docHeight !== self.docHeight) { 102 | self.docHeight = docHeight; 103 | self.getPositions(); 104 | } 105 | }, 250); 106 | }, 107 | 108 | getHash: function($link) { 109 | return $link.attr('href').split('#')[1]; 110 | }, 111 | 112 | getPositions: function() { 113 | var self = this; 114 | var linkHref; 115 | var topPos; 116 | var $target; 117 | 118 | self.$nav.each(function() { 119 | linkHref = self.getHash($(this)); 120 | $target = $('#' + linkHref); 121 | 122 | if($target.length) { 123 | topPos = $target.offset().top; 124 | self.sections[linkHref] = Math.round(topPos); 125 | } 126 | }); 127 | }, 128 | 129 | getSection: function(windowPos) { 130 | var returnValue = null; 131 | var windowHeight = Math.round(this.$win.height() * this.config.scrollThreshold); 132 | 133 | for(var section in this.sections) { 134 | if((this.sections[section] - windowHeight) < windowPos) { 135 | returnValue = section; 136 | } 137 | } 138 | 139 | return returnValue; 140 | }, 141 | 142 | handleClick: function(e) { 143 | var self = this; 144 | var $link = $(e.currentTarget); 145 | var $parent = $link.parent(); 146 | var newLoc = '#' + self.getHash($link); 147 | 148 | if(!$parent.hasClass(self.config.currentClass)) { 149 | //Start callback 150 | if(self.config.begin) { 151 | self.config.begin(); 152 | } 153 | 154 | //Change the highlighted nav item 155 | self.adjustNav(self, $parent); 156 | 157 | //Removing the auto-adjust on scroll 158 | self.unbindInterval(); 159 | 160 | //Scroll to the correct position 161 | self.scrollTo(newLoc, function() { 162 | //Do we need to change the hash? 163 | if(self.config.changeHash) { 164 | window.location.hash = newLoc; 165 | } 166 | 167 | //Add the auto-adjust on scroll back in 168 | self.bindInterval(); 169 | 170 | //End callback 171 | if(self.config.end) { 172 | self.config.end(); 173 | } 174 | }); 175 | } 176 | 177 | e.preventDefault(); 178 | }, 179 | 180 | scrollChange: function() { 181 | var windowTop = this.$win.scrollTop(); 182 | var position = this.getSection(windowTop); 183 | var $parent; 184 | 185 | //If the position is set 186 | if(position !== null) { 187 | $parent = this.$elem.find('a[href$="#' + position + '"]').parent(); 188 | 189 | //If it's not already the current section 190 | if(!$parent.hasClass(this.config.currentClass)) { 191 | //Change the highlighted nav item 192 | this.adjustNav(this, $parent); 193 | 194 | //If there is a scrollChange callback 195 | if(this.config.scrollChange) { 196 | this.config.scrollChange($parent); 197 | } 198 | } 199 | } 200 | }, 201 | 202 | scrollTo: function(target, callback) { 203 | var offset = $(target).offset().top - this.config.padding; 204 | 205 | $('html, body').animate({ 206 | scrollTop: offset 207 | }, this.config.scrollSpeed, this.config.easing, callback); 208 | }, 209 | 210 | unbindInterval: function() { 211 | clearInterval(this.t); 212 | this.$win.unbind('scroll.onePageNav'); 213 | } 214 | }; 215 | 216 | OnePageNav.defaults = OnePageNav.prototype.defaults; 217 | 218 | $.fn.onePageNav = function(options) { 219 | return this.each(function() { 220 | new OnePageNav(this, options).init(); 221 | }); 222 | }; 223 | 224 | })( jQuery, window , document ); -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | # Hexo Configuration 2 | ## Docs: https://hexo.io/docs/configuration.html 3 | ## Source: https://github.com/hexojs/hexo/ 4 | 5 | # Site 6 | title: 胡伟煌 7 | subtitle: 个人博客 8 | author: 胡伟煌 9 | language: 10 | timezone: 11 | 12 | # URL 13 | ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/' 14 | url: http://www.huweihuang.com/ # Note: don't forget to modify the CNAME file to your url 15 | root: / 16 | #permalink: :year/:month/:day/:title/ 17 | permalink: :category/:title/ 18 | permalink_defaults: 19 | lang: en 20 | 21 | #Custom Setting Start 22 | 23 | # Site settings 24 | SEOTitle: 胡伟煌 | Blog 25 | email: e-mail_address 26 | description: "" 27 | keyword: "" 28 | header-img: /img/header_img/home.jpg 29 | article-img: /img/article_header/article_bg.jpg 30 | 404-img: /img/header_img/404.png 31 | signature: false #show signature 32 | signature-img: img/signature/BeanTechSign-white.png 33 | 34 | 35 | # SNS settings 36 | # RSS: false 37 | # weibo_username: Demonbaneen 38 | # zhihu_username: Demonbane 39 | github_username: huweihuang 40 | # twitter_username: Demonbane_x 41 | # facebook_username: xxx 42 | # linkedin_username: xxx 43 | 44 | # Build settings 45 | anchorjs: true # if you want to customize anchor. check out line:181 of `post.html` 46 | 47 | 48 | # Disqus settings 49 | #disqus_username: your-disqus-ID 50 | 51 | # Duoshuo settings 52 | # duoshuo_username: kaijun 53 | # Share component is depend on Comment so we can NOT use share only. 54 | #duoshuo_share: true # set to false if you want to use Comment without Sharing 55 | 56 | 57 | # Analytics settings 58 | #Baidu Analytics 59 | ba_track_id: xxx 60 | # Google Analytics 61 | ga_track_id: 'UA-XXXXXXXX-X' # Format: UA-xxxxxx-xx 62 | ga_domain: yoursite 63 | 64 | 65 | # Sidebar settings 66 | sidebar: true # whether or not using Sidebar. 67 | sidebar-about-description: "Stay hungry,Stay foolish" 68 | sidebar-avatar: /img/avatar/ironman.png # use absolute URL, seeing it's used in both `/` and `/about/` 69 | widgets: 70 | - featured-tags 71 | - short-about 72 | - recent-posts 73 | - friends-blog 74 | - archive 75 | #- category 76 | 77 | # widget behavior 78 | ## Archive 79 | archives-img: /img/header_img/archives-widget.jpg 80 | archive_type: 'monthly' 81 | show_count: true 82 | 83 | 84 | ## Featured Tags 85 | featured-tags: true # whether or not using Feature-Tags 86 | featured-condition-size: 0 # A tag will be featured if the size of it is more than this condition value 87 | 88 | 89 | ## Friends 90 | friends: [ 91 | { 92 | title: "CSDN Blog 胡伟煌", 93 | href: "http://blog.csdn.net/huwh_" 94 | }, 95 | { 96 | title: "DockOne 胡伟煌", 97 | href: "http://dockone.io/people/胡伟煌" 98 | }, 99 | { 100 | title: "阿里云栖社区 胡伟煌", 101 | href: "https://yq.aliyun.com/u/huweihuang" 102 | } 103 | ] 104 | 105 | 106 | #Custom Setting End 107 | 108 | 109 | 110 | # Directory 111 | source_dir: source 112 | public_dir: public 113 | tag_dir: tags 114 | archive_dir: archives 115 | category_dir: categories 116 | code_dir: downloads/code 117 | i18n_dir: :lang 118 | skip_render: 119 | 120 | # Writing 121 | new_post_name: :title.md # File name of new posts 122 | default_layout: post 123 | titlecase: false # Transform title into titlecase 124 | external_link: true # Open external links in new tab 125 | filename_case: 0 126 | render_drafts: false 127 | post_asset_folder: true 128 | relative_link: false 129 | future: true 130 | highlight: 131 | enable: true 132 | line_number: true 133 | auto_detect: false 134 | tab_replace: 135 | 136 | # Category & Tag 137 | default_category: article 138 | category_map: 139 | Docker: docker 140 | Kubernetes: kubernetes 141 | Golang: golang 142 | Nginx: nginx 143 | Etcd: etcd 144 | Database: database 145 | 146 | tag_map: 147 | home_posts_tag: true # show posts tags 148 | 149 | # Date / Time format 150 | ## Hexo uses Moment.js to parse and display date 151 | ## You can customize the date format as defined in 152 | ## http://momentjs.com/docs/#/displaying/format/ 153 | date_format: YYYY-MM-DD 154 | time_format: HH:mm:ss 155 | 156 | # Pagination 157 | ## Set per_page to 0 to disable pagination 158 | per_page: 10 159 | pagination_dir: archives 160 | 161 | archive_generator: 162 | per_page: 10 163 | yearly: true 164 | monthly: true 165 | daily: false 166 | 167 | # Markdown-it config 168 | ## Docs: https://github.com/celsomiranda/hexo-renderer-markdown-it/wiki 169 | markdown: 170 | render: 171 | html: true 172 | xhtmlOut: false 173 | breaks: true 174 | linkify: true 175 | typographer: true 176 | quotes: '“”‘’' 177 | 178 | # Extensions 179 | ## Plugins: https://hexo.io/plugins/ 180 | 181 | # recommended-posts 182 | # reference: https://github.com/huiwang/hexo-recommended-posts 183 | # recommended_posts: 184 | # server: https://api.truelaurel.com #后端推荐服务器地址 185 | # timeoutInMillis: 10000 #服务时长,超过此时长,则使用离线推荐模式 186 | # internalLinks: 3 #内部文章数量 187 | # externalLinks: 0 #外部文章数量 188 | # autoDisplay: true, #自动在文章底部显示推荐文章 189 | # titleHtml:

推荐文章

#自定义标题 190 | 191 | # hexo-tag-aplayer 192 | # reference: https://github.com/MoePlayer/hexo-tag-aplayer 193 | # aplayer: 194 | # meting: true 195 | 196 | # MeingJS support for Aplayer 197 | # reference: https://github.com/metowolf/MetingJS & https://github.com/MoePlayer/APlayer 198 | metingjs: false 199 | data-id: 2423410161 200 | data-server: netease 201 | data-type: playlist 202 | data-fixed: true 203 | # data-mini: 204 | # data-autoplay: 205 | 206 | # Reward 207 | reward: false 208 | reward_comment: 赞赏一下 209 | wechatpay: wechatpay_url 210 | alipay: alipay_url 211 | 212 | # Share 213 | # Reference: https://github.com/overtrue/share.js 214 | share: true 215 | 216 | # Reference: https://github.com/YuyingWu/hexo-generator-index-plus 217 | index_generator_plus: 218 | path: '' 219 | per_page: 10 220 | 221 | ## Themes: https://hexo.io/themes/ 222 | theme: huweihuang 223 | 224 | #sitemap 225 | sitemap: 226 | path: sitemap.xml 227 | 228 | # Deployment 229 | ## Docs: https://hexo.io/docs/deployment.html 230 | # repository: https://github.com/huweihuang/xxxxxxx.github.io.git 231 | # branch: master 232 | deploy: 233 | type: git 234 | repository: https://github.com/huweihuang/hexo-theme-huweihuang 235 | branch: gh-pages 236 | message: Update CNAME 237 | -------------------------------------------------------------------------------- /themes/huweihuang/source/css/highlight.styl: -------------------------------------------------------------------------------- 1 | /*https://github.com/chriskempson/tomorrow-theme*/ 2 | 3 | $highlight_theme = hexo-config("highlight_theme") || "normal" 4 | 5 | 6 | if $highlight_theme == "normal" 7 | $highlight-background = #f7f7f7 8 | $highlight-current-line = #efefef 9 | $highlight-selection = #d6d6d6 10 | $highlight-foreground = #4d4d4c 11 | $highlight-comment = #8e908c 12 | $highlight-red = #c82829 13 | $highlight-orange = #f5871f 14 | $highlight-yellow = #eab700 15 | $highlight-green = #718c00 16 | $highlight-aqua = #3e999f 17 | $highlight-blue = #4271ae 18 | $highlight-purple = #8959a8 19 | 20 | if $highlight_theme == "night" 21 | $highlight-background = #1d1f21 22 | $highlight-current-line = #282a2e 23 | $highlight-selection = #373b41 24 | $highlight-foreground = #c5c8c6 25 | $highlight-comment = #969896 26 | $highlight-red = #cc6666 27 | $highlight-orange = #de935f 28 | $highlight-yellow = #f0c674 29 | $highlight-green = #b5bd68 30 | $highlight-aqua = #8abeb7 31 | $highlight-blue = #81a2be 32 | $highlight-purple = #b294bb 33 | 34 | if $highlight_theme == "night yilia" 35 | $highlight-background = #4d4d4d 36 | $highlight-current-line = #393939 37 | $highlight-selection = #515151 38 | $highlight-foreground = #FFFFFF 39 | $highlight-comment = #75715E 40 | $highlight-red = #FD971F 41 | $highlight-orange = #f99157 42 | $highlight-yellow = #ffcc66 43 | $highlight-green = #E6DB74 44 | $highlight-aqua = #66cccc 45 | $highlight-blue = #A6E22E 46 | $highlight-purple = #F92672 47 | 48 | if $highlight_theme == "night eighties" 49 | $highlight-background = #2d2d2d 50 | $highlight-current-line = #393939 51 | $highlight-selection = #515151 52 | $highlight-foreground = #cccccc 53 | $highlight-comment = #999999 54 | $highlight-red = #f2777a 55 | $highlight-orange = #f99157 56 | $highlight-yellow = #ffcc66 57 | $highlight-green = #99cc99 58 | $highlight-aqua = #66cccc 59 | $highlight-blue = #6699cc 60 | $highlight-purple = #cc99cc 61 | 62 | if $highlight_theme == "night blue" 63 | $highlight-background = #002451 64 | $highlight-current-line = #00346e 65 | $highlight-selection = #003f8e 66 | $highlight-foreground = #ffffff 67 | $highlight-comment = #7285b7 68 | $highlight-red = #ff9da4 69 | $highlight-orange = #ffc58f 70 | $highlight-yellow = #ffeead 71 | $highlight-green = #d1f1a9 72 | $highlight-aqua = #99ffff 73 | $highlight-blue = #bbdaff 74 | $highlight-purple = #ebbbff 75 | 76 | if $highlight_theme == "night bright" 77 | $highlight-background = #000000 78 | $highlight-current-line = #2a2a2a 79 | $highlight-selection = #424242 80 | $highlight-foreground = #eaeaea 81 | $highlight-comment = #969896 82 | $highlight-red = #d54e53 83 | $highlight-orange = #e78c45 84 | $highlight-yellow = #e7c547 85 | $highlight-green = #b9ca4a 86 | $highlight-aqua = #70c0b1 87 | $highlight-blue = #7aa6da 88 | $highlight-purple = #c397d8 89 | 90 | 91 | clearfix() 92 | &:before 93 | &:after 94 | content: "" 95 | display: table 96 | &:after 97 | clear: both 98 | zoom: 1 if support-for-ie 99 | 100 | line-height = 1.6em 101 | font-size = 14px 102 | article-padding = 20px 103 | color-border = #ddd 104 | 105 | 106 | $code-font-size = 13px 107 | $code-background = #eee 108 | $code-foreground = #555 109 | $code-border-radius = 4px 110 | 111 | 112 | // Placeholder: $code-block 113 | $code-block { 114 | overflow: auto; 115 | margin: 20px 0; 116 | padding: 15px; 117 | font-size $code-font-size; 118 | color: $highlight-foreground; 119 | background: $highlight-background; 120 | line-height: $line-height-code-block; 121 | } 122 | 123 | /*pre, code { 124 | font-family: $code-font-family; 125 | }*/ 126 | 127 | /* 128 | .post-container code { 129 | padding: 2px 4px; 130 | word-break: break-all; 131 | color: $code-foreground; 132 | background: $code-background; 133 | border-radius: $code-border-radius; 134 | font-size $code-font-size; 135 | }*/ 136 | 137 | .post-container pre { 138 | @extend $code-block; 139 | 140 | code { 141 | padding: 0; 142 | color: $highlight-foreground; 143 | background: none; 144 | text-shadow: none; 145 | } 146 | } 147 | 148 | .post-container .highlight { 149 | @extend $code-block; 150 | 151 | pre { 152 | border: none; 153 | margin: 0; 154 | padding: 1px; 155 | } 156 | 157 | table { 158 | margin: 0; 159 | width: auto; 160 | border: none; 161 | } 162 | 163 | td { 164 | border: none !important; 165 | padding: 0; 166 | } 167 | 168 | figcaption { 169 | clearfix(); 170 | font-size: 1em; 171 | color: $highlight-foreground; 172 | line-height: 1em; 173 | margin-bottom: 1em; 174 | 175 | a { 176 | float: right; 177 | color: $highlight-foreground; 178 | 179 | &:hover { border-bottom-color: $highlight-foreground; } 180 | } 181 | } 182 | 183 | .gutter pre { 184 | color: #666; 185 | text-align: right; 186 | padding-right: 20px; 187 | } 188 | 189 | .line { height: 20px; } 190 | } 191 | 192 | 193 | .post-container .gist table { 194 | width: auto; 195 | 196 | td { border: none; } 197 | } 198 | 199 | .post-container pre { 200 | 201 | .comment { color: $highlight-comment; } 202 | 203 | .variable 204 | .attribute 205 | .tag 206 | .regexp 207 | .ruby .constant 208 | .xml .tag .title 209 | .xml .pi 210 | .xml .doctype 211 | .html .doctype 212 | .css .id 213 | .css .class 214 | .css .pseudo { 215 | color: $highlight-red; 216 | } 217 | 218 | .number 219 | .preprocessor 220 | .built_in 221 | .literal 222 | .params 223 | .constant 224 | .command { 225 | color: $highlight-orange; 226 | } 227 | 228 | .ruby .class .title 229 | .css .rules .attribute 230 | .string 231 | .value 232 | .inheritance 233 | .header 234 | .ruby .symbol 235 | .xml .cdata 236 | .special 237 | .number 238 | .formula { 239 | color: $highlight-green; 240 | } 241 | 242 | .title 243 | .css .hexcolor { 244 | color: $highlight-aqua; 245 | } 246 | 247 | .function 248 | .python .decorator 249 | .python .title 250 | .ruby .function .title 251 | .ruby .title .keyword 252 | .perl .sub 253 | .javascript .title 254 | .coffeescript .title { 255 | color: $highlight-blue; 256 | } 257 | 258 | .keyword 259 | .javascript .function { 260 | color: $highlight-purple; 261 | } 262 | 263 | } -------------------------------------------------------------------------------- /themes/huweihuang/layout/page.ejs: -------------------------------------------------------------------------------- 1 | --- 2 | layout: layout 3 | --- 4 | 5 |
6 |
7 | <% if(config.sidebar == false) { %> 8 | 9 | 10 |
11 | <%- page.content || body %> 12 |
13 | 14 | 47 | <%} else { %> 48 | 49 | 50 | 51 |
58 | 59 | <%- page.content || body %> 60 | 61 |
62 | 63 | 64 | <% if(page.aplayer) { %> 65 | 66 | 67 | 68 | 69 |
74 |
75 | <% } %> 76 | 77 | 78 | <% if(page.comments) { %> 79 |
80 | 81 | <% if(config['duoshuo_username']) { %> 82 | 83 |
84 |
88 |
89 |
90 | 91 | <% } %> 92 | 93 | <% if(config['disqus_username']) { %> 94 | 95 |
96 |
97 |
98 | 99 | <% } %> 100 | 101 | <% if(config['livere_uid']) { %> 102 | 103 |
104 |
105 |
106 | 107 | <% } %> 108 | 109 | <% if(config['duoshuo_username']) { %> 110 | 111 | 126 | 127 | <% } %> 128 | 129 | <% if(config['disqus_username']) { %> 130 | 131 | 145 | 146 | <% } %> 147 | 148 | <% if(config['livere_uid']) { %> 149 | 150 | 163 | 164 | 165 | <% } %> 166 | 167 | <% } %> 168 |
169 | 170 | <%- partial('_partial/sidebar') %> 171 | 172 | <%} %> 173 |
174 |
175 | -------------------------------------------------------------------------------- /themes/huweihuang/layout/_partial/footer.ejs: -------------------------------------------------------------------------------- 1 | 2 | 101 | 102 | 103 | <%- js('js/jquery.min.js') %> 104 | 105 | 106 | <%- js('js/bootstrap.min.js') %> 107 | 108 | 109 | <%- js('js/hux-blog.min.js') %> 110 | 111 | 112 | 113 | 123 | 124 | 133 | 141 | 142 | 143 | 144 | 156 | 157 | 158 | 164 | 165 | 166 | 167 | 168 | <% if (config.ga_track_id) { %> 169 | 183 | 184 | <% } %> 185 | 186 | 187 | 188 | <% if (config.ba_track_id) { %> 189 | 202 | <% } %> 203 | 204 | 205 | -------------------------------------------------------------------------------- /themes/huweihuang/layout/keynote.ejs: -------------------------------------------------------------------------------- 1 | --- 2 | layout: layout 3 | --- 4 | 5 | 6 | 7 | 8 | 9 | 10 | 22 |
23 | 46 |
47 | 48 | 49 |
50 |
51 |
52 | 53 | 54 |
58 | 59 | <%- page.content %> 60 | 61 |
62 | 63 | <% if(config['duoshuo_share'] && config['duoshuo_username']) { %> 64 | 65 | 66 |
" 72 | data-content="<%- truncate(strip_html(page.content), {length: 50, omission: '...'}) %> | <%= config.SEOTitle %> " > 73 |
74 | 80 |
81 |
82 |
83 |
84 |
85 | 86 | <% } %> 87 | 88 | 100 | 101 | <% if(config['duoshuo_username']) { %> 102 | 103 |
104 |
108 |
109 |
110 | 111 | <% } %> 112 | 113 | <% if(config['disqus_username']) { %> 114 | 115 |
116 |
117 |
118 | 119 | <% } %> 120 | 121 |
122 | 123 | 124 | 125 | 153 | 154 |
155 |
156 |
157 | 158 | <% if(config['duoshuo_username']) { %> 159 | 160 | 175 | 176 | <% } %> 177 | 178 | <% if(config['disqus_username']) { %> 179 | 180 | 192 | 193 | <% } %> 194 | 195 | 196 | <% if(config['anchorjs']) { %> 197 | 198 | 208 | 209 | 219 | 230 | <% } %> 231 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /themes/huweihuang/LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright 2013-2015 Iron Summit Media Strategies, LLC 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | 203 | -------------------------------------------------------------------------------- /themes/huweihuang/layout/post.ejs: -------------------------------------------------------------------------------- 1 | --- 2 | layout: layout 3 | --- 4 | 5 | 6 | 7 |
8 |
9 |
10 | 11 | 12 |
16 | 17 | <%- page.content %> 18 | 19 | 20 |
21 | 22 | 34 | 35 |
36 | 37 | 38 | <% if(config['reward']) { %> 39 |
40 |
41 | 支付宝打赏 42 | 微信打赏 43 |
44 |

<%= config['reward_comment'] %>

45 |
46 | <% } %> 47 | 48 | 49 |
50 | 51 | <% if(config['share']) { %> 52 | 53 | 54 | 55 | 56 | <% } %> 57 | 58 |
59 | 60 | 61 | <% if(config['metingjs']) { %> 62 | 63 | 64 | 65 | 66 |
71 |
72 | <% } %> 73 | 74 | 75 | <% if(config['duoshuo_share'] && config['duoshuo_username']) { %> 76 |
" 82 | data-content="<%- truncate(strip_html(page.content), {length: 50, omission: '...'}) %> | <%= config.SEOTitle %> " > 83 |
84 | 90 |
91 |
92 |
93 |
94 |
95 | <% } %> 96 | 97 | 98 | 99 | <% if(config['duoshuo_username']) { %> 100 |
101 |
105 |
106 |
107 | <% } %> 108 | 109 | 110 | 111 | <% if(config['disqus_username']) { %> 112 |
113 |
114 |
115 | <% } %> 116 | 117 | 118 | <% if(config['livere_uid']) { %> 119 | 120 |
121 |
122 |
123 | 124 | <% } %> 125 | 126 |
127 | 128 | 129 | <%- partial('_partial/toc') %> 130 | 131 | 132 | 162 |
163 |
164 |
165 | 166 | <% if(config['duoshuo_username']) { %> 167 | 168 | 183 | 184 | <% } %> 185 | 186 | <% if(config['disqus_username']) { %> 187 | 188 | 200 | 201 | <% } %> 202 | 203 | <% if(config['livere_uid']) { %> 204 | 205 | 218 | 219 | 220 | <% } %> 221 | 222 | <% if(config['anchorjs']) { %> 223 | 224 | 234 | 235 | 245 | 256 | <% } %> 257 | 258 | 259 | 260 | 261 | 262 | 275 | -------------------------------------------------------------------------------- /themes/huweihuang/source/css/hux-blog.min.css: -------------------------------------------------------------------------------- 1 | @media (min-width:1200px){.post-container,.sidebar-container{padding-right:5%}}@media (min-width:768px){.post-container{padding-right:5%}}.sidebar-container{color:#bfbfbf;font-size:14px}.sidebar-container h5{color:gray;padding-bottom:1em}.sidebar-container h5 a{color:gray!important;text-decoration:none}.sidebar-container a{color:#bfbfbf!important}.sidebar-container a:hover,.sidebar-container a:active{color:#0085a1!important}.sidebar-container .tags a{border-color:#bfbfbf}.sidebar-container .tags a:hover,.sidebar-container .tags a:active{border-color:#0085a1}.sidebar-container .short-about img{width:80%;display:block;border-radius:5px;margin-bottom:20px}.sidebar-container .short-about p{margin-top:0;margin-bottom:20px}.sidebar-container .short-about .list-inline>li{padding-left:0}body{font-family:-apple-system,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB",STHeiti,"Microsoft YaHei","Microsoft JhengHei","Source Han Sans SC","Noto Sans CJK SC","Source Han Sans CN","Noto Sans SC","Source Han Sans TC","Noto Sans CJK TC","WenQuanYi Micro Hei",SimSun,sans-serif;line-height:1.7;font-size:16px;color:#404040;overflow-x:hidden}p{margin:30px 0}h1,h2,h3,h4,h5,h6{font-family:-apple-system,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB",STHeiti,"Microsoft YaHei","Microsoft JhengHei","Source Han Sans SC","Noto Sans CJK SC","Source Han Sans CN","Noto Sans SC","Source Han Sans TC","Noto Sans CJK TC","WenQuanYi Micro Hei",SimSun,sans-serif;line-height:1.7;line-height:1.1;font-weight:700}h4{font-size:21px}a{color:#404040}a:hover,a:focus{color:#0085a1}a img:hover,a img:focus{cursor:zoom-in}article{overflow-x:hidden}blockquote{color:gray;font-style:italic;font-size:.95em;margin:20px 0 20px}blockquote p{margin:0}small.img-hint{display:block;margin-top:-20px;text-align:center}br+small.img-hint{margin-top:-40px}img.shadow{box-shadow:rgba(0,0,0,.258824) 0 2px 5px 0}@media screen and (max-width:768px){select{-webkit-appearance:none;margin-top:15px;color:#337ab7;border-color:#337ab7;padding:0 .4em;background:#fff}}.table th,.table td{border:1px solid #eee!important}hr.small{max-width:100px;margin:15px auto;border-width:4px;border-color:#fff}pre,.table-responsive{-webkit-overflow-scrolling:touch}pre code{display:block;width:auto;white-space:pre;word-wrap:normal}.post-container a{color:#337ab7}.post-container a:hover,.post-container a:focus{color:#0085a1}.post-container h1,.post-container h2,.post-container h3,.post-container h4,.post-container h5,.post-container h6{margin:30px 0 10px}.post-container h5{font-size:19px;font-weight:600;color:gray}.post-container h5+p{margin-top:5px}.post-container h6{font-size:16px;font-weight:600;color:gray}.post-container h6+p{margin-top:5px}.post-container ul,.post-container ol{margin-bottom:40px}@media screen and (max-width:768px){.post-container ul,.post-container ol{padding-left:30px}}@media screen and (max-width:500px){.post-container ul,.post-container ol{padding-left:20px}}.post-container ol ol,.post-container ol ul,.post-container ul ol,.post-container ul ul{margin-bottom:5px}.post-container li p{margin:0;margin-bottom:5px}.post-container li h1,.post-container li h2,.post-container li h3,.post-container li h4,.post-container li h5,.post-container li h6{line-height:2;margin-top:20px}@media only screen and (max-width:767px){.navbar-default .navbar-collapse{border:none;background:#fff;box-shadow:0 5px 10px 2px rgba(0,0,0,.2);box-shadow:rgba(0,0,0,.117647) 0 1px 6px,rgba(0,0,0,.239216) 0 1px 4px;border-radius:2px;width:170px;float:right;margin:0}#huxblog_navbar{opacity:0;transform:scaleX(0);transform-origin:top right;transition:all .25s cubic-bezier(0.23,1,.32,1);-webkit-transform:scaleX(0);-webkit-transform-origin:top right;-webkit-transition:all .25s cubic-bezier(0.23,1,.32,1)}#huxblog_navbar a{font-size:13px;line-height:28px}#huxblog_navbar .navbar-collapse{height:0;transform:scaleY(0);transform-origin:top right;transition:transform 500ms cubic-bezier(0.23,1,.32,1);-webkit-transform:scaleY(0);-webkit-transform-origin:top right;-webkit-transition:-webkit-transform 500ms cubic-bezier(0.23,1,.32,1)}#huxblog_navbar li{opacity:0;transition:opacity 450ms cubic-bezier(0.23,1,.32,1) 205ms;-webkit-transition:opacity 450ms cubic-bezier(0.23,1,.32,1) 205ms}#huxblog_navbar.in{transform:scaleX(1);-webkit-transform:scaleX(1);opacity:1}#huxblog_navbar.in .navbar-collapse{transform:scaleY(1);-webkit-transform:scaleY(1)}#huxblog_navbar.in li{opacity:1}}.navbar-custom{background:0 0;border:none;position:absolute;top:0;left:0;width:100%;z-index:3;font-family:-apple-system,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB",STHeiti,"Microsoft YaHei","Microsoft JhengHei","Source Han Sans SC","Noto Sans CJK SC","Source Han Sans CN","Noto Sans SC","Source Han Sans TC","Noto Sans CJK TC","WenQuanYi Micro Hei",SimSun,sans-serif;line-height:1.7}.navbar-custom .navbar-brand{font-weight:800;color:#fff;height:56px;line-height:25px}.navbar-custom .navbar-brand:hover{color:rgba(255,255,255,.8)}.navbar-custom .nav li a{text-transform:uppercase;font-size:12px;line-height:20px;font-weight:800;letter-spacing:1px}.navbar-custom .nav li a:active{background:rgba(0,0,0,.12)}@media only screen and (min-width:768px){.navbar-custom{background:0 0;border-bottom:1px solid transparent}.navbar-custom body{font-size:20px}.navbar-custom .navbar-brand{color:#fff;padding:20px;line-height:20px}.navbar-custom .navbar-brand:hover,.navbar-custom .navbar-brand:focus{color:rgba(255,255,255,.8)}.navbar-custom .nav li a{color:#fff;padding:20px}.navbar-custom .nav li a:hover,.navbar-custom .nav li a:focus{color:rgba(255,255,255,.8)}.navbar-custom .nav li a:active{background:0 0}}@media only screen and (min-width:1170px){.navbar-custom{-webkit-transition:background-color .3s;-moz-transition:background-color .3s;transition:background-color .3s;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.navbar-custom.is-fixed{position:fixed;top:-61px;background-color:rgba(255,255,255,.9);border-bottom:1px solid #f2f2f2;-webkit-transition:-webkit-transform .3s;-moz-transition:-moz-transform .3s;transition:transform .3s}.navbar-custom.is-fixed .navbar-brand{color:#404040}.navbar-custom.is-fixed .navbar-brand:hover,.navbar-custom.is-fixed .navbar-brand:focus{color:#0085a1}.navbar-custom.is-fixed .nav li a{color:#404040}.navbar-custom.is-fixed .nav li a:hover,.navbar-custom.is-fixed .nav li a:focus{color:#0085a1}.navbar-custom.is-visible{-webkit-transform:translate3d(0,100%,0);-moz-transform:translate3d(0,100%,0);-ms-transform:translate3d(0,100%,0);-o-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.intro-header{background:no-repeat center center;background-color:gray;background-attachment:scroll;-webkit-background-size:cover;-moz-background-size:cover;background-size:cover;-o-background-size:cover;margin-bottom:0}@media only screen and (min-width:768px){.intro-header{margin-bottom:20px}}.intro-header .site-heading,.intro-header .post-heading,.intro-header .page-heading{padding:85px 0 55px;color:#fff}@media only screen and (min-width:768px){.intro-header .site-heading,.intro-header .post-heading,.intro-header .page-heading{padding:150px 0}}.intro-header .site-heading{padding:95px 0 70px}@media only screen and (min-width:768px){.intro-header .site-heading{padding:150px 0}}.intro-header .site-heading,.intro-header .page-heading{text-align:center}.intro-header .site-heading h1,.intro-header .page-heading h1{margin-top:0;font-size:50px}.intro-header .site-heading .subheading,.intro-header .page-heading .subheading{font-family:-apple-system,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB",STHeiti,"Microsoft YaHei","Microsoft JhengHei","Source Han Sans SC","Noto Sans CJK SC","Source Han Sans CN","Noto Sans SC","Source Han Sans TC","Noto Sans CJK TC","WenQuanYi Micro Hei",SimSun,sans-serif;line-height:1.7;font-size:18px;line-height:1.1;display:block;font-weight:300;margin:10px 0 0}@media only screen and (min-width:768px){.intro-header .site-heading h1,.intro-header .page-heading h1{font-size:80px}}.intro-header .post-heading h1{font-size:30px;margin-bottom:24px}.intro-header .post-heading .subheading,.intro-header .post-heading .meta{line-height:1.1;display:block}.intro-header .post-heading .subheading{font-family:-apple-system,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB",STHeiti,"Microsoft YaHei","Microsoft JhengHei","Source Han Sans SC","Noto Sans CJK SC","Source Han Sans CN","Noto Sans SC","Source Han Sans TC","Noto Sans CJK TC","WenQuanYi Micro Hei",SimSun,sans-serif;line-height:1.7;font-size:17px;line-height:1.4;font-weight:400;margin:10px 0 30px;margin-top:-5px}.intro-header .post-heading .meta{font-family:Lora,'Times New Roman',serif;font-style:italic;font-weight:300;font-size:18px}.intro-header .post-heading .meta a{color:#fff}@media only screen and (min-width:768px){.intro-header .post-heading h1{font-size:55px}.intro-header .post-heading .subheading{font-size:30px}.intro-header .post-heading .meta{font-size:20px}}.post-preview>a{color:#404040}.post-preview>a:hover,.post-preview>a:focus{text-decoration:none;color:#0085a1}.post-preview>a>.post-title{font-size:21px;line-height:1.3;margin-top:30px;margin-bottom:8px}.post-preview>a>.post-subtitle{font-size:15px;line-height:1.3;margin:0;font-weight:300;margin-bottom:10px}.post-preview>.post-meta{font-family:Lora,'Times New Roman',serif;color:gray;font-size:16px;font-style:italic;margin-top:0}.post-preview>.post-meta>a{text-decoration:none;color:#404040}.post-preview>.post-meta>a:hover,.post-preview>.post-meta>a:focus{color:#0085a1;text-decoration:underline}@media only screen and (min-width:768px){.post-preview>a>.post-title{font-size:26px;line-height:1.3;margin-bottom:10px}.post-preview>a>.post-subtitle{font-size:16px}.post-preview .post-meta{font-size:18px}}.post-content-preview{font-size:13px;font-style:italic;color:#a3a3a3}.post-content-preview:hover{color:#0085a1}@media only screen and (min-width:768px){.post-content-preview{font-size:14px}}.section-heading{font-size:36px;margin-top:60px;font-weight:700}.caption{text-align:center;font-size:14px;padding:10px;font-style:italic;margin:0;display:block;border-bottom-right-radius:5px;border-bottom-left-radius:5px}footer{font-size:20px;padding:50px 0 65px}footer .list-inline{margin:0;padding:0}footer .copyright{font-size:14px;text-align:center;margin-bottom:0}footer .copyright a{color:#337ab7}footer .copyright a:hover,footer .copyright a:focus{color:#0085a1}.floating-label-form-group{font-size:14px;position:relative;margin-bottom:0;padding-bottom:.5em;border-bottom:1px solid #eee}.floating-label-form-group input,.floating-label-form-group textarea{z-index:1;position:relative;padding-right:0;padding-left:0;border:none;border-radius:0;font-size:1.5em;background:0 0;box-shadow:none!important;resize:none}.floating-label-form-group label{display:block;z-index:0;position:relative;top:2em;margin:0;font-size:.85em;line-height:1.764705882em;vertical-align:middle;vertical-align:baseline;opacity:0;-webkit-transition:top .3s ease,opacity .3s ease;-moz-transition:top .3s ease,opacity .3s ease;-ms-transition:top .3s ease,opacity .3s ease;transition:top .3s ease,opacity .3s ease}.floating-label-form-group::not(:first-child){padding-left:14px;border-left:1px solid #eee}.floating-label-form-group-with-value label{top:0;opacity:1}.floating-label-form-group-with-focus label{color:#0085a1}form .row:first-child .floating-label-form-group{border-top:1px solid #eee}.btn{font-family:-apple-system,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB",STHeiti,"Microsoft YaHei","Microsoft JhengHei","Source Han Sans SC","Noto Sans CJK SC","Source Han Sans CN","Noto Sans SC","Source Han Sans TC","Noto Sans CJK TC","WenQuanYi Micro Hei",SimSun,sans-serif;line-height:1.7;text-transform:uppercase;font-size:14px;font-weight:800;letter-spacing:1px;border-radius:0;padding:15px 25px}.btn-lg{font-size:16px;padding:25px 35px}.btn-default:hover,.btn-default:focus{background-color:#0085a1;border:1px solid #0085a1;color:#fff}.pager{margin:20px 0 0!important;padding:0!important}.pager li>a,.pager li>span{font-family:-apple-system,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB",STHeiti,"Microsoft YaHei","Microsoft JhengHei","Source Han Sans SC","Noto Sans CJK SC","Source Han Sans CN","Noto Sans SC","Source Han Sans TC","Noto Sans CJK TC","WenQuanYi Micro Hei",SimSun,sans-serif;line-height:1.7;text-transform:uppercase;font-size:13px;font-weight:800;letter-spacing:1px;padding:10px;background-color:#fff;border-radius:0}@media only screen and (min-width:768px){.pager li>a,.pager li>span{font-size:14px;padding:15px 25px}}.pager li>a{color:#404040}.pager li>a:hover,.pager li>a:focus{color:#fff;background-color:#0085a1;border:1px solid #0085a1}.pager .disabled>a,.pager .disabled>a:hover,.pager .disabled>a:focus,.pager .disabled>span{color:gray;background-color:#404040;cursor:not-allowed}::-moz-selection{color:#fff;text-shadow:none;background:#0085a1}::selection{color:#fff;text-shadow:none;background:#0085a1}img::selection{color:#fff;background:0 0}img::-moz-selection{color:#fff;background:0 0}body{webkit-tap-highlight-color:#0085a1}.tags{margin-bottom:-5px}.tags a,.tags .tag{display:inline-block;border:1px solid rgba(255,255,255,.8);border-radius:999em;padding:0 10px;color:#fff;line-height:24px;font-size:12px;text-decoration:none;margin:0 1px;margin-bottom:6px}.tags a:hover,.tags .tag:hover,.tags a:active,.tags .tag:active{color:#fff;border-color:#fff;background-color:rgba(255,255,255,.4);text-decoration:none}@media only screen and (min-width:768px){.tags a,.tags .tag{margin-right:5px}}#tag-heading{padding:70px 0 60px}@media only screen and (min-width:768px){#tag-heading{padding:55px 0}}#tag_cloud{margin:20px 0 15px 0}#tag_cloud a,#tag_cloud .tag{font-size:14px;border:none;line-height:28px;margin:0 2px;margin-bottom:8px;background:#D6D6D6}#tag_cloud a:hover,#tag_cloud .tag:hover,#tag_cloud a:active,#tag_cloud .tag:active{background-color:#0085a1!important}@media only screen and (min-width:768px){#tag_cloud{margin-bottom:25px}}.tag-comments{font-size:12px}@media only screen and (min-width:768px){.tag-comments{font-size:14px}}.t:first-child{margin-top:0}.listing-seperator{color:#0085a1;font-size:21px!important}.listing-seperator::before{margin-right:5px}@media only screen and (min-width:768px){.listing-seperator{font-size:20px!important;line-height:2!important}}.one-tag-list .tag-text{font-weight:200;font-family:-apple-system,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB",STHeiti,"Microsoft YaHei","Microsoft JhengHei","Source Han Sans SC","Noto Sans CJK SC","Source Han Sans CN","Noto Sans SC","Source Han Sans TC","Noto Sans CJK TC","WenQuanYi Micro Hei",SimSun,sans-serif;line-height:1.7}.one-tag-list .post-preview{position:relative}.one-tag-list .post-preview>a .post-title{font-size:16px;font-weight:500;margin-top:20px}.one-tag-list .post-preview>a .post-subtitle{font-size:12px}.one-tag-list .post-preview>.post-meta{position:absolute;right:5px;bottom:0;margin:0;font-size:12px;line-height:12px}@media only screen and (min-width:768px){.one-tag-list .post-preview{margin-left:20px}.one-tag-list .post-preview>a>.post-title{font-size:18px;line-height:1.3}.one-tag-list .post-preview>a>.post-subtitle{font-size:14px}.one-tag-list .post-preview .post-meta{font-size:18px}}.post-container img{display:block;max-width:100%;height:auto;margin:1.5em auto 1.6em auto}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:inherit}.navbar-default .navbar-toggle:active{background-color:rgba(255,255,255,.25)}.navbar-default .navbar-toggle{border-color:transparent;padding:19px 16px;margin-top:2px;margin-right:2px;margin-bottom:2px;border-radius:50%}.navbar-default .navbar-toggle .icon-bar{width:18px;border-radius:0;background-color:#fff}.navbar-default .navbar-toggle .icon-bar+.icon-bar{margin-top:3px}.comment{margin-top:20px}.comment #ds-thread #ds-reset a.ds-like-thread-button{border:1px solid #ddd;border-radius:0;background:#fff;box-shadow:none;text-shadow:none}.comment #ds-thread #ds-reset li.ds-tab a.ds-current{border:1px solid #ddd;border-radius:0;background:#fff;box-shadow:none;text-shadow:none}.comment #ds-thread #ds-reset .ds-textarea-wrapper{background:0 0}.comment #ds-thread #ds-reset .ds-gradient-bg{background:0 0}#ds-smilies-tooltip ul.ds-smilies-tabs li a{background:#fff!important}.page-fullscreen .intro-header{position:fixed;left:0;top:0;width:100%;height:100%}.page-fullscreen #tag-heading{position:fixed;left:0;top:0;padding-bottom:150px;width:100%;height:100%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-pack:center;-webkit-box-align:center;display:-webkit-flex;-webkit-align-items:center;-webkit-justify-content:center;-webkit-flex-direction:column;display:flex;align-items:center;justify-content:center;flex-direction:column}.page-fullscreen footer{position:absolute;width:100%;bottom:0;padding-bottom:20px;opacity:.6;color:#fff}.page-fullscreen footer .copyright{color:#fff}.page-fullscreen footer .copyright a{color:#fff}.page-fullscreen footer .copyright a:hover{color:#ddd} -------------------------------------------------------------------------------- /themes/huweihuang/source/css/beantech.min.css: -------------------------------------------------------------------------------- 1 | @media (min-width:1200px){.post-container,.sidebar-container{padding-right:5%}}@media (min-width:768px){.post-container{padding-right:5%}}.sidebar-container{color:#bfbfbf;font-size:14px}.sidebar-container h5{color:gray;padding-bottom:1em;text-transform:uppercase}.sidebar-container h5 a{color:#808080!important;text-decoration:none}.sidebar-container a{color:#bfbfbf!important}.sidebar-container a:hover,.sidebar-container a:active{color:#0085a1!important}.sidebar-container .tags a{border-color:#bfbfbf}.sidebar-container .tags a:hover,.sidebar-container .tags a:active{border-color:#0085a1}.sidebar-container .short-about img{width:80%;display:block;border-radius:5px;margin-bottom:20px}.sidebar-container .short-about p{margin-top:0;margin-bottom:20px}.sidebar-container .short-about .list-inline>li{padding-left:0}body{font-family:-apple-system,"Helvetica Neue","Arial","PingFang SC","Hiragino Sans GB","STHeiti","Microsoft YaHei","Microsoft JhengHei","Source Han Sans SC","Noto Sans CJK SC","Source Han Sans CN","Noto Sans SC","Source Han Sans TC","Noto Sans CJK TC","WenQuanYi Micro Hei",SimSun,sans-serif;line-height:1.7;font-size:16px;color:#404040;overflow-x:hidden}p{margin:30px 0}h1,h2,h3,h4,h5,h6{font-family:-apple-system,"Helvetica Neue","Arial","PingFang SC","Hiragino Sans GB","STHeiti","Microsoft YaHei","Microsoft JhengHei","Source Han Sans SC","Noto Sans CJK SC","Source Han Sans CN","Noto Sans SC","Source Han Sans TC","Noto Sans CJK TC","WenQuanYi Micro Hei",SimSun,sans-serif;line-height:1.7;line-height:1.1;font-weight:700}h4{font-size:21px}a{color:#404040}a:hover,a:focus{color:#0085a1}a img:hover,a img:focus{cursor:zoom-in}article{overflow-x:hidden}blockquote{color:gray;font-style:italic;font-size:.95em;margin:20px 0 20px}blockquote p{margin:0}small.img-hint{display:block;margin-top:-20px;text-align:center}br+small.img-hint{margin-top:-40px}img.shadow{box-shadow:rgba(0,0,0,.258824) 0 2px 5px 0}@media screen and (max-width:768px){select{-webkit-appearance:none;margin-top:15px;color:#337ab7;border-color:#337ab7;padding:0em .4em;background:white}}select{-webkit-appearance:none;margin-top:15px;color:#337ab7;border-color:#337ab7;padding:0 .4em;background:#fff}select.sel-lang{min-height:28px;font-size:14px}.table th,.table td{border:1px solid #eee!important}hr.small{max-width:100px;margin:15px auto;border-width:4px}pre,.table-responsive{-webkit-overflow-scrolling:touch}pre code{display:block;width:auto;white-space:pre;word-wrap:normal}.post-container a{color:#337ab7}.post-container a:hover,.post-container a:focus{color:#0085a1}.post-container h1,.post-container h2,.post-container h3,.post-container h4,.post-container h5,.post-container h6{margin:30px 0 10px}.post-container h5{font-size:19px;font-weight:600;color:gray}.post-container h5+p{margin-top:5px}.post-container h6{font-size:16px;font-weight:600;color:gray}.post-container h6+p{margin-top:5px}.post-container ul,.post-container ol{margin-bottom:40px}@media screen and (max-width:768px){.post-container ul,.post-container ol{padding-left:30px}}@media screen and (max-width:500px){.post-container ul,.post-container ol{padding-left:20px}}.post-container ol ol,.post-container ol ul,.post-container ul ol,.post-container ul ul{margin-bottom:5px}.post-container li p{margin:0;margin-bottom:5px}.post-container li h1,.post-container li h2,.post-container li h3,.post-container li h4,.post-container li h5,.post-container li h6{line-height:2;margin-top:20px}.post-container .tags a{color:gray;border-color:gray}.post-container .tags a:hover,.post-container .tags a:active{color:#0085a1;border-color:#0085a1}@media only screen and (max-width:767px){.navbar-default .navbar-collapse{border:none;background:white;box-shadow:0 5px 10px 2px rgba(0,0,0,.2);box-shadow:rgba(0,0,0,.117647) 0 1px 6px,rgba(0,0,0,.239216) 0 1px 4px;border-radius:2px;width:170px;float:right;margin:0}#huxblog_navbar{opacity:0;transform:scaleX(0);transform-origin:top right;transition:all 0.25s cubic-bezier(.23,1,.32,1);-webkit-transform:scaleX(0);-webkit-transform-origin:top right;-webkit-transition:all 0.25s cubic-bezier(.23,1,.32,1)}#huxblog_navbar a{font-size:13px;line-height:28px}#huxblog_navbar .navbar-collapse{height:0;transform:scaleY(0);transform-origin:top right;transition:transform 500ms cubic-bezier(.23,1,.32,1);-webkit-transform:scaleY(0);-webkit-transform-origin:top right;-webkit-transition:-webkit-transform 500ms cubic-bezier(.23,1,.32,1)}#huxblog_navbar li{opacity:0;transition:opacity 450ms cubic-bezier(.23,1,.32,1) 205ms;-webkit-transition:opacity 450ms cubic-bezier(.23,1,.32,1) 205ms}#huxblog_navbar.in{transform:scaleX(1);-webkit-transform:scaleX(1);opacity:1}#huxblog_navbar.in .navbar-collapse{transform:scaleY(1);-webkit-transform:scaleY(1)}#huxblog_navbar.in li{opacity:1}}.navbar-custom{background:none;border:none;position:absolute;top:0;left:0;width:100%;z-index:3;font-family:-apple-system,"Helvetica Neue","Arial","PingFang SC","Hiragino Sans GB","STHeiti","Microsoft YaHei","Microsoft JhengHei","Source Han Sans SC","Noto Sans CJK SC","Source Han Sans CN","Noto Sans SC","Source Han Sans TC","Noto Sans CJK TC","WenQuanYi Micro Hei",SimSun,sans-serif;line-height:1.7}.navbar-custom .navbar-brand{font-weight:800;color:white;height:56px;line-height:25px}.navbar-custom .navbar-brand:hover{color:rgba(255,255,255,.8)}.navbar-custom .nav li a{text-transform:uppercase;font-size:12px;line-height:20px;font-weight:800;letter-spacing:1px}.navbar-custom .nav li a:active{background:rgba(0,0,0,.12)}@media only screen and (min-width:768px){.navbar-custom{background:transparent;border-bottom:1px solid transparent}.navbar-custom body{font-size:20px}.navbar-custom .navbar-brand{color:white;padding:20px;line-height:20px}.navbar-custom .navbar-brand:hover,.navbar-custom .navbar-brand:focus{color:rgba(255,255,255,.8)}.navbar-custom .nav li a{color:white;padding:20px}.navbar-custom .nav li a:hover,.navbar-custom .nav li a:focus{color:rgba(255,255,255,.8)}.navbar-custom .nav li a:active{background:none}}@media only screen and (min-width:1170px){.navbar-custom{-webkit-transition:background-color 0.3s;-moz-transition:background-color 0.3s;transition:background-color 0.3s;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.navbar-custom.is-fixed{position:fixed;top:-61px;background-color:rgba(255,255,255,.9);border-bottom:1px solid #f2f2f2;-webkit-transition:-webkit-transform 0.3s;-moz-transition:-moz-transform 0.3s;transition:transform 0.3s}.navbar-custom.is-fixed .navbar-brand{color:#404040}.navbar-custom.is-fixed .navbar-brand:hover,.navbar-custom.is-fixed .navbar-brand:focus{color:#0085a1}.navbar-custom.is-fixed .nav li a{color:#404040}.navbar-custom.is-fixed .nav li a:hover,.navbar-custom.is-fixed .nav li a:focus{color:#0085a1}.navbar-custom.is-visible{-webkit-transform:translate3d(0,100%,0);-moz-transform:translate3d(0,100%,0);-ms-transform:translate3d(0,100%,0);-o-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.intro-header{background:no-repeat center center;background-color:gray;background-attachment:scroll;-webkit-background-size:cover;-moz-background-size:cover;background-size:cover;-o-background-size:cover;margin-bottom:0}@media only screen and (min-width:768px){.intro-header{margin-bottom:20px}}.intro-header .site-heading,.intro-header .post-heading,.intro-header .page-heading{padding:85px 0 55px;color:white}@media only screen and (min-width:768px){.intro-header .site-heading,.intro-header .post-heading,.intro-header .page-heading{padding:150px 0}}.intro-header .site-heading{padding:95px 0 70px}@media only screen and (min-width:768px){.intro-header .site-heading{padding:150px 0}}.intro-header .site-heading,.intro-header .page-heading{text-align:center}.intro-header .site-heading h1,.intro-header .page-heading h1{margin-top:0;font-size:50px}.intro-header .site-heading .subheading,.intro-header .page-heading .subheading{font-family:-apple-system,"Helvetica Neue","Arial","PingFang SC","Hiragino Sans GB","STHeiti","Microsoft YaHei","Microsoft JhengHei","Source Han Sans SC","Noto Sans CJK SC","Source Han Sans CN","Noto Sans SC","Source Han Sans TC","Noto Sans CJK TC","WenQuanYi Micro Hei",SimSun,sans-serif;line-height:1.7;font-size:18px;line-height:1.1;display:block;font-weight:300;margin:10px 0 0}@media only screen and (min-width:768px){.intro-header .site-heading h1,.intro-header .page-heading h1{font-size:80px}}.intro-header .post-heading h1{font-size:30px;margin-bottom:24px}.intro-header .post-heading .subheading,.intro-header .post-heading .meta{line-height:1.1;display:block}.intro-header .post-heading .subheading{font-family:-apple-system,"Helvetica Neue","Arial","PingFang SC","Hiragino Sans GB","STHeiti","Microsoft YaHei","Microsoft JhengHei","Source Han Sans SC","Noto Sans CJK SC","Source Han Sans CN","Noto Sans SC","Source Han Sans TC","Noto Sans CJK TC","WenQuanYi Micro Hei",SimSun,sans-serif;line-height:1.7;font-size:17px;line-height:1.4;font-weight:400;margin:10px 0 30px;margin-top:-5px}.intro-header .post-heading .meta{font-family:'Lora','Times New Roman',serif;font-style:italic;font-weight:300;font-size:18px}.intro-header .post-heading .meta a{color:white}@media only screen and (min-width:768px){.intro-header .post-heading h1{font-size:55px}.intro-header .post-heading .subheading{font-size:30px}.intro-header .post-heading .meta{font-size:20px}}.post-preview>a{color:#404040}.post-preview>a:hover,.post-preview>a:focus{text-decoration:none;color:#0085a1}.post-preview>a>.post-title{font-size:21px;line-height:1.3;margin-top:30px;margin-bottom:8px}.post-preview>a>.post-subtitle{font-size:15px;line-height:1.3;margin:0;font-weight:300;margin-bottom:10px}.post-preview>.post-meta{font-family:'Lora','Times New Roman',serif;color:gray;font-size:16px;font-style:italic;margin-top:0}.post-preview>.post-meta>a{text-decoration:none;color:#404040}.post-preview>.post-meta>a:hover,.post-preview>.post-meta>a:focus{color:#0085a1;text-decoration:underline}@media only screen and (min-width:768px){.post-preview>a>.post-title{font-size:26px;line-height:1.3;margin-bottom:10px}.post-preview>a>.post-subtitle{font-size:16px}.post-preview .post-meta{font-size:18px}}.post-content-preview{font-size:13px;font-style:italic;color:#a3a3a3}.post-content-preview:hover{color:#0085a1}@media only screen and (min-width:768px){.post-content-preview{font-size:14px}}.section-heading{font-size:36px;margin-top:60px;font-weight:700}.caption{text-align:center;font-size:14px;padding:10px;font-style:italic;margin:0;display:block;border-bottom-right-radius:5px;border-bottom-left-radius:5px}footer{font-size:20px;padding:50px 0 65px}footer .list-inline{margin:0;padding:0}footer .copyright{font-size:14px;text-align:center;margin-bottom:0}footer .copyright a{color:#337ab7}footer .copyright a:hover,footer .copyright a:focus{color:#0085a1}.floating-label-form-group{font-size:14px;position:relative;margin-bottom:0;padding-bottom:.5em;border-bottom:1px solid #eee}.floating-label-form-group input,.floating-label-form-group textarea{z-index:1;position:relative;padding-right:0;padding-left:0;border:none;border-radius:0;font-size:1.5em;background:none;box-shadow:none!important;resize:none}.floating-label-form-group label{display:block;z-index:0;position:relative;top:2em;margin:0;font-size:.85em;line-height:1.764705882em;vertical-align:middle;vertical-align:baseline;opacity:0;-webkit-transition:top 0.3s ease,opacity 0.3s ease;-moz-transition:top 0.3s ease,opacity 0.3s ease;-ms-transition:top 0.3s ease,opacity 0.3s ease;transition:top 0.3s ease,opacity 0.3s ease}.floating-label-form-group::not(:first-child){padding-left:14px;border-left:1px solid #eee}.floating-label-form-group-with-value label{top:0;opacity:1}.floating-label-form-group-with-focus label{color:#0085a1}form .row:first-child .floating-label-form-group{border-top:1px solid #eee}.btn{font-family:-apple-system,"Helvetica Neue","Arial","PingFang SC","Hiragino Sans GB","STHeiti","Microsoft YaHei","Microsoft JhengHei","Source Han Sans SC","Noto Sans CJK SC","Source Han Sans CN","Noto Sans SC","Source Han Sans TC","Noto Sans CJK TC","WenQuanYi Micro Hei",SimSun,sans-serif;line-height:1.7;text-transform:uppercase;font-size:14px;font-weight:800;letter-spacing:1px;border-radius:0;padding:15px 25px}.btn-lg{font-size:16px;padding:25px 35px}.btn-default:hover,.btn-default:focus{background-color:#0085a1;border:1px solid #0085a1;color:white}.pager{margin:20px 0 0!important;padding:0px!important}.pager li>a,.pager li>span{font-family:-apple-system,"Helvetica Neue","Arial","PingFang SC","Hiragino Sans GB","STHeiti","Microsoft YaHei","Microsoft JhengHei","Source Han Sans SC","Noto Sans CJK SC","Source Han Sans CN","Noto Sans SC","Source Han Sans TC","Noto Sans CJK TC","WenQuanYi Micro Hei",SimSun,sans-serif;line-height:1.7;text-transform:uppercase;font-size:13px;font-weight:800;letter-spacing:1px;padding:10px;background-color:white;border-radius:0}@media only screen and (min-width:768px){.pager li>a,.pager li>span{font-size:14px;padding:15px 25px}}.pager li>a{color:#404040}.pager li>a:hover,.pager li>a:focus{color:white;background-color:#0085a1;border:1px solid #0085a1}.pager .disabled>a,.pager .disabled>a:hover,.pager .disabled>a:focus,.pager .disabled>span{color:gray;background-color:#404040;cursor:not-allowed}::-moz-selection{color:white;text-shadow:none;background:#0085a1}::selection{color:white;text-shadow:none;background:#0085a1}img::selection{color:white;background:transparent}img::-moz-selection{color:white;background:transparent}body{webkit-tap-highlight-color:#0085a1}.tags{margin-bottom:-5px}.tags a,.tags .tag{display:inline-block;border:1px solid rgba(255,255,255,.8);border-radius:999em;padding:0 10px;color:#fff;line-height:24px;font-size:12px;text-decoration:none;margin:0 1px;margin-bottom:6px}.tags a:hover,.tags .tag:hover,.tags a:active,.tags .tag:active{color:white;border-color:white;background-color:rgba(255,255,255,.4);text-decoration:none}@media only screen and (min-width:768px){.tags a,.tags .tag{margin-right:5px}}#tag-heading{padding:70px 0 60px}@media only screen and (min-width:768px){#tag-heading{padding:55px 0}}#tag_cloud{margin:20px 0 15px 0}#tag_cloud a,#tag_cloud .tag{font-size:14px;border:none;line-height:28px;margin:0 2px;margin-bottom:8px;background:#D6D6D6}#tag_cloud a:hover,#tag_cloud .tag:hover,#tag_cloud a:active,#tag_cloud .tag:active{background-color:#0085a1!important}@media only screen and (min-width:768px){#tag_cloud{margin-bottom:25px}}.tag-comments{font-size:12px}@media only screen and (min-width:768px){.tag-comments{font-size:14px}}.t:first-child{margin-top:0}.listing-seperator{color:#0085a1;font-size:21px!important}.listing-seperator::before{margin-right:5px}@media only screen and (min-width:768px){.listing-seperator{font-size:20px!important;line-height:2!important}}.one-tag-list .tag-text{font-weight:200;font-family:-apple-system,"Helvetica Neue","Arial","PingFang SC","Hiragino Sans GB","STHeiti","Microsoft YaHei","Microsoft JhengHei","Source Han Sans SC","Noto Sans CJK SC","Source Han Sans CN","Noto Sans SC","Source Han Sans TC","Noto Sans CJK TC","WenQuanYi Micro Hei",SimSun,sans-serif;line-height:1.7}.one-tag-list .post-preview{position:relative}.one-tag-list .post-preview>a .post-title{font-size:16px;font-weight:500;margin-top:20px}.one-tag-list .post-preview>a .post-subtitle{font-size:12px}.one-tag-list .post-preview>.post-meta{position:absolute;right:5px;bottom:0;margin:0;font-size:12px;line-height:12px}@media only screen and (min-width:768px){.one-tag-list .post-preview{margin-left:20px}.one-tag-list .post-preview>a>.post-title{font-size:18px;line-height:1.3}.one-tag-list .post-preview>a>.post-subtitle{font-size:14px}.one-tag-list .post-preview .post-meta{font-size:18px}}.post-container img{display:block;max-width:100%;height:auto;margin:1.5em auto 1.6em auto}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:inherit}.navbar-default .navbar-toggle:active{background-color:rgba(255,255,255,.25)}.navbar-default .navbar-toggle{border-color:transparent;padding:19px 16px;margin-top:2px;margin-right:2px;margin-bottom:2px;border-radius:50%}.navbar-default .navbar-toggle .icon-bar{width:18px;border-radius:0;background-color:white}.navbar-default .navbar-toggle .icon-bar+.icon-bar{margin-top:3px}.comment{margin-top:20px}.comment #ds-thread #ds-reset a.ds-like-thread-button{border:1px solid #ddd;border-radius:0;background:white;box-shadow:none;text-shadow:none}.comment #ds-thread #ds-reset li.ds-tab a.ds-current{border:1px solid #ddd;border-radius:0;background:white;box-shadow:none;text-shadow:none}.comment #ds-thread #ds-reset .ds-textarea-wrapper{background:none}.comment #ds-thread #ds-reset .ds-gradient-bg{background:none}#ds-smilies-tooltip ul.ds-smilies-tabs li a{background:white!important}.page-fullscreen .intro-header{position:fixed;left:0;top:0;width:100%;height:100%}.page-fullscreen #tag-heading{position:fixed;left:0;top:0;padding-bottom:150px;width:100%;height:100%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-pack:center;-webkit-box-align:center;display:-webkit-flex;-webkit-align-items:center;-webkit-justify-content:center;-webkit-flex-direction:column;display:flex;align-items:center;justify-content:center;flex-direction:column}.page-fullscreen footer{position:absolute;width:100%;bottom:0;padding-bottom:20px;opacity:.6;color:#fff}.page-fullscreen footer .copyright{color:#fff}.page-fullscreen footer .copyright a{color:#fff}.page-fullscreen footer .copyright a:hover{color:#ddd} -------------------------------------------------------------------------------- /themes/huweihuang/source/css/beantech.css: -------------------------------------------------------------------------------- 1 | @media (min-width: 1200px) { 2 | .post-container, 3 | .sidebar-container { 4 | padding-right: 5%; 5 | } 6 | } 7 | @media (min-width: 768px) { 8 | .post-container { 9 | padding-right: 5%; 10 | } 11 | } 12 | .sidebar-container { 13 | color: #bfbfbf; 14 | font-size: 14px; 15 | } 16 | .sidebar-container h5 { 17 | color: #808080; 18 | padding-bottom: 1em; 19 | text-transform: uppercase 20 | } 21 | .sidebar-container h5 a { 22 | color: #808080 !important; 23 | text-decoration: none; 24 | } 25 | .sidebar-container a { 26 | color: #bfbfbf !important; 27 | } 28 | .sidebar-container a:hover, 29 | .sidebar-container a:active { 30 | color: #0085a1 !important; 31 | } 32 | .sidebar-container .tags a { 33 | border-color: #bfbfbf; 34 | } 35 | .sidebar-container .tags a:hover, 36 | .sidebar-container .tags a:active { 37 | border-color: #0085a1; 38 | } 39 | 40 | .sidebar-container .short-about img { 41 | width: 80%; 42 | display: block; 43 | border-radius: 5px; 44 | margin-bottom: 20px; 45 | } 46 | .sidebar-container .short-about p { 47 | margin-top: 0px; 48 | margin-bottom: 20px; 49 | } 50 | .sidebar-container .short-about .list-inline > li { 51 | padding-left: 0px; 52 | } 53 | 54 | body { 55 | /* Hux learn from 56 | * TypeIsBeautiful, 57 | * [This Post](http://zhuanlan.zhihu.com/ibuick/20186806) etc. 58 | */ 59 | font-family: -apple-system, "Helvetica Neue", "Arial", "PingFang SC", "Hiragino Sans GB", "STHeiti", "Microsoft YaHei", "Microsoft JhengHei", "Source Han Sans SC", "Noto Sans CJK SC", "Source Han Sans CN", "Noto Sans SC", "Source Han Sans TC", "Noto Sans CJK TC", "WenQuanYi Micro Hei", SimSun, sans-serif; 60 | line-height: 1.7; 61 | font-size: 16px; 62 | color: #404040; 63 | overflow-x: hidden; 64 | } 65 | p { 66 | margin: 30px 0; 67 | } 68 | h1, 69 | h2, 70 | h3, 71 | h4, 72 | h5, 73 | h6 { 74 | /* Hux learn from 75 | * TypeIsBeautiful, 76 | * [This Post](http://zhuanlan.zhihu.com/ibuick/20186806) etc. 77 | */ 78 | font-family: -apple-system, "Helvetica Neue", "Arial", "PingFang SC", "Hiragino Sans GB", "STHeiti", "Microsoft YaHei", "Microsoft JhengHei", "Source Han Sans SC", "Noto Sans CJK SC", "Source Han Sans CN", "Noto Sans SC", "Source Han Sans TC", "Noto Sans CJK TC", "WenQuanYi Micro Hei", SimSun, sans-serif; 79 | line-height: 1.7; 80 | line-height: 1.1; 81 | font-weight: bold; 82 | } 83 | h4 { 84 | font-size: 21px; 85 | } 86 | a { 87 | color: #404040; 88 | } 89 | a:hover, 90 | a:focus { 91 | color: #0085a1; 92 | } 93 | a img:hover, 94 | a img:focus { 95 | cursor: zoom-in; 96 | } 97 | article { 98 | overflow-x: hidden; 99 | } 100 | blockquote { 101 | color: #808080; 102 | font-style: italic; 103 | font-size: 0.95em; 104 | margin: 20px 0 20px; 105 | } 106 | blockquote p { 107 | margin: 0; 108 | } 109 | small.img-hint { 110 | display: block; 111 | margin-top: -20px; 112 | text-align: center; 113 | } 114 | br + small.img-hint { 115 | margin-top: -40px; 116 | } 117 | img.shadow { 118 | box-shadow: rgba(0, 0, 0, 0.258824) 0px 2px 5px 0px; 119 | } 120 | @media screen and (max-width: 768px) { 121 | select { 122 | -webkit-appearance: none; 123 | margin-top: 15px; 124 | color: #337ab7; 125 | border-color: #337ab7; 126 | padding: 0em 0.4em; 127 | background: white; 128 | } 129 | } 130 | select { 131 | -webkit-appearance: none; 132 | margin-top: 15px; 133 | color: #337ab7; 134 | border-color: #337ab7; 135 | padding: 0 .4em; 136 | background: #fff; 137 | } 138 | select.sel-lang { 139 | min-height: 28px; 140 | font-size: 14px; 141 | } 142 | .table th, 143 | .table td { 144 | border: 1px solid #eee !important; 145 | } 146 | hr.small { 147 | max-width: 100px; 148 | margin: 15px auto; 149 | border-width: 4px; 150 | /*border-color: white;*/ 151 | } 152 | pre, 153 | .table-responsive { 154 | -webkit-overflow-scrolling: touch; 155 | } 156 | pre code { 157 | display: block; 158 | width: auto; 159 | white-space: pre; 160 | word-wrap: normal; 161 | } 162 | .post-container a { 163 | color: #337ab7; 164 | } 165 | .post-container a:hover, 166 | .post-container a:focus { 167 | color: #0085a1; 168 | } 169 | .post-container h1, 170 | .post-container h2, 171 | .post-container h3, 172 | .post-container h4, 173 | .post-container h5, 174 | .post-container h6 { 175 | margin: 30px 0 10px; 176 | } 177 | .post-container h5 { 178 | font-size: 19px; 179 | font-weight: 600; 180 | color: gray; 181 | } 182 | .post-container h5 + p { 183 | margin-top: 5px; 184 | } 185 | .post-container h6 { 186 | font-size: 16px; 187 | font-weight: 600; 188 | color: gray; 189 | } 190 | .post-container h6 + p { 191 | margin-top: 5px; 192 | } 193 | .post-container ul, 194 | .post-container ol { 195 | margin-bottom: 40px; 196 | } 197 | @media screen and (max-width: 768px) { 198 | .post-container ul, 199 | .post-container ol { 200 | padding-left: 30px; 201 | } 202 | } 203 | @media screen and (max-width: 500px) { 204 | .post-container ul, 205 | .post-container ol { 206 | padding-left: 20px; 207 | } 208 | } 209 | .post-container ol ol, 210 | .post-container ol ul, 211 | .post-container ul ol, 212 | .post-container ul ul { 213 | margin-bottom: 5px; 214 | } 215 | .post-container li p { 216 | margin: 0; 217 | margin-bottom: 5px; 218 | } 219 | .post-container li h1, 220 | .post-container li h2, 221 | .post-container li h3, 222 | .post-container li h4, 223 | .post-container li h5, 224 | .post-container li h6 { 225 | line-height: 2; 226 | margin-top: 20px; 227 | } 228 | .post-container .tags a { 229 | color: gray; 230 | border-color: gray; 231 | } 232 | .post-container .tags a:hover, 233 | .post-container .tags a:active { 234 | color: #0085a1; 235 | border-color: #0085a1; 236 | } 237 | 238 | @media only screen and (max-width: 767px) { 239 | .navbar-default .navbar-collapse { 240 | border: none; 241 | background: white; 242 | box-shadow: 0px 5px 10px 2px rgba(0, 0, 0, 0.2); 243 | box-shadow: rgba(0, 0, 0, 0.117647) 0px 1px 6px, rgba(0, 0, 0, 0.239216) 0px 1px 4px; 244 | border-radius: 2px; 245 | width: 170px; 246 | float: right; 247 | margin: 0px; 248 | } 249 | #huxblog_navbar { 250 | opacity: 0; 251 | transform: scaleX(0); 252 | transform-origin: top right; 253 | transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1); 254 | -webkit-transform: scaleX(0); 255 | -webkit-transform-origin: top right; 256 | -webkit-transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1); 257 | } 258 | #huxblog_navbar a { 259 | font-size: 13px; 260 | line-height: 28px; 261 | } 262 | #huxblog_navbar .navbar-collapse { 263 | height: 0px; 264 | transform: scaleY(0); 265 | transform-origin: top right; 266 | transition: transform 500ms cubic-bezier(0.23, 1, 0.32, 1); 267 | -webkit-transform: scaleY(0); 268 | -webkit-transform-origin: top right; 269 | -webkit-transition: -webkit-transform 500ms cubic-bezier(0.23, 1, 0.32, 1); 270 | } 271 | #huxblog_navbar li { 272 | opacity: 0; 273 | transition: opacity 450ms cubic-bezier(0.23, 1, 0.32, 1) 205ms; 274 | -webkit-transition: opacity 450ms cubic-bezier(0.23, 1, 0.32, 1) 205ms; 275 | } 276 | #huxblog_navbar.in { 277 | transform: scaleX(1); 278 | -webkit-transform: scaleX(1); 279 | opacity: 1; 280 | } 281 | #huxblog_navbar.in .navbar-collapse { 282 | transform: scaleY(1); 283 | -webkit-transform: scaleY(1); 284 | } 285 | #huxblog_navbar.in li { 286 | opacity: 1; 287 | } 288 | } 289 | .navbar-custom { 290 | background: none; 291 | border: none; 292 | position: absolute; 293 | top: 0; 294 | left: 0; 295 | width: 100%; 296 | z-index: 3; 297 | /* Hux learn from 298 | * TypeIsBeautiful, 299 | * [This Post](http://zhuanlan.zhihu.com/ibuick/20186806) etc. 300 | */ 301 | font-family: -apple-system, "Helvetica Neue", "Arial", "PingFang SC", "Hiragino Sans GB", "STHeiti", "Microsoft YaHei", "Microsoft JhengHei", "Source Han Sans SC", "Noto Sans CJK SC", "Source Han Sans CN", "Noto Sans SC", "Source Han Sans TC", "Noto Sans CJK TC", "WenQuanYi Micro Hei", SimSun, sans-serif; 302 | line-height: 1.7; 303 | } 304 | .navbar-custom .navbar-brand { 305 | font-weight: 800; 306 | color: white; 307 | height: 56px; 308 | line-height: 25px; 309 | } 310 | .navbar-custom .navbar-brand:hover { 311 | color: rgba(255, 255, 255, 0.8); 312 | } 313 | .navbar-custom .nav li a { 314 | text-transform: uppercase; 315 | font-size: 12px; 316 | line-height: 20px; 317 | font-weight: 800; 318 | letter-spacing: 1px; 319 | } 320 | .navbar-custom .nav li a:active { 321 | background: rgba(0, 0, 0, 0.12); 322 | } 323 | @media only screen and (min-width: 768px) { 324 | .navbar-custom { 325 | background: transparent; 326 | border-bottom: 1px solid transparent; 327 | } 328 | .navbar-custom body { 329 | font-size: 20px; 330 | } 331 | .navbar-custom .navbar-brand { 332 | color: white; 333 | padding: 20px; 334 | line-height: 20px; 335 | } 336 | .navbar-custom .navbar-brand:hover, 337 | .navbar-custom .navbar-brand:focus { 338 | color: rgba(255, 255, 255, 0.8); 339 | } 340 | .navbar-custom .nav li a { 341 | color: white; 342 | padding: 20px; 343 | } 344 | .navbar-custom .nav li a:hover, 345 | .navbar-custom .nav li a:focus { 346 | color: rgba(255, 255, 255, 0.8); 347 | } 348 | .navbar-custom .nav li a:active { 349 | background: none; 350 | } 351 | } 352 | @media only screen and (min-width: 1170px) { 353 | .navbar-custom { 354 | -webkit-transition: background-color 0.3s; 355 | -moz-transition: background-color 0.3s; 356 | transition: background-color 0.3s; 357 | /* Force Hardware Acceleration in WebKit */ 358 | -webkit-transform: translate3d(0, 0, 0); 359 | -moz-transform: translate3d(0, 0, 0); 360 | -ms-transform: translate3d(0, 0, 0); 361 | -o-transform: translate3d(0, 0, 0); 362 | transform: translate3d(0, 0, 0); 363 | -webkit-backface-visibility: hidden; 364 | backface-visibility: hidden; 365 | } 366 | .navbar-custom.is-fixed { 367 | /* when the user scrolls down, we hide the header right above the viewport */ 368 | position: fixed; 369 | top: -61px; 370 | background-color: rgba(255, 255, 255, 0.9); 371 | border-bottom: 1px solid #f2f2f2; 372 | -webkit-transition: -webkit-transform 0.3s; 373 | -moz-transition: -moz-transform 0.3s; 374 | transition: transform 0.3s; 375 | } 376 | .navbar-custom.is-fixed .navbar-brand { 377 | color: #404040; 378 | } 379 | .navbar-custom.is-fixed .navbar-brand:hover, 380 | .navbar-custom.is-fixed .navbar-brand:focus { 381 | color: #0085a1; 382 | } 383 | .navbar-custom.is-fixed .nav li a { 384 | color: #404040; 385 | } 386 | .navbar-custom.is-fixed .nav li a:hover, 387 | .navbar-custom.is-fixed .nav li a:focus { 388 | color: #0085a1; 389 | } 390 | .navbar-custom.is-visible { 391 | /* if the user changes the scrolling direction, we show the header */ 392 | -webkit-transform: translate3d(0, 100%, 0); 393 | -moz-transform: translate3d(0, 100%, 0); 394 | -ms-transform: translate3d(0, 100%, 0); 395 | -o-transform: translate3d(0, 100%, 0); 396 | transform: translate3d(0, 100%, 0); 397 | } 398 | } 399 | .intro-header { 400 | background: no-repeat center center; 401 | background-color: #808080; 402 | background-attachment: scroll; 403 | -webkit-background-size: cover; 404 | -moz-background-size: cover; 405 | background-size: cover; 406 | -o-background-size: cover; 407 | margin-bottom: 0px; 408 | /* modify by Yu-Hsuan Yen */ 409 | } 410 | @media only screen and (min-width: 768px) { 411 | .intro-header { 412 | margin-bottom: 20px; 413 | /* response on desktop */ 414 | } 415 | } 416 | .intro-header .site-heading, 417 | .intro-header .post-heading, 418 | .intro-header .page-heading { 419 | padding: 85px 0 55px; 420 | color: white; 421 | } 422 | @media only screen and (min-width: 768px) { 423 | .intro-header .site-heading, 424 | .intro-header .post-heading, 425 | .intro-header .page-heading { 426 | padding: 150px 0; 427 | } 428 | } 429 | .intro-header .site-heading { 430 | padding: 95px 0 70px; 431 | } 432 | @media only screen and (min-width: 768px) { 433 | .intro-header .site-heading { 434 | padding: 150px 0; 435 | } 436 | } 437 | .intro-header .site-heading, 438 | .intro-header .page-heading { 439 | text-align: center; 440 | } 441 | .intro-header .site-heading h1, 442 | .intro-header .page-heading h1 { 443 | margin-top: 0; 444 | font-size: 50px; 445 | } 446 | .intro-header .site-heading .subheading, 447 | .intro-header .page-heading .subheading { 448 | /* Hux learn from 449 | * TypeIsBeautiful, 450 | * [This Post](http://zhuanlan.zhihu.com/ibuick/20186806) etc. 451 | */ 452 | font-family: -apple-system, "Helvetica Neue", "Arial", "PingFang SC", "Hiragino Sans GB", "STHeiti", "Microsoft YaHei", "Microsoft JhengHei", "Source Han Sans SC", "Noto Sans CJK SC", "Source Han Sans CN", "Noto Sans SC", "Source Han Sans TC", "Noto Sans CJK TC", "WenQuanYi Micro Hei", SimSun, sans-serif; 453 | line-height: 1.7; 454 | font-size: 18px; 455 | line-height: 1.1; 456 | display: block; 457 | font-weight: 300; 458 | margin: 10px 0 0; 459 | } 460 | @media only screen and (min-width: 768px) { 461 | .intro-header .site-heading h1, 462 | .intro-header .page-heading h1 { 463 | font-size: 80px; 464 | } 465 | } 466 | .intro-header .post-heading h1 { 467 | font-size: 30px; 468 | margin-bottom: 24px; 469 | } 470 | .intro-header .post-heading .subheading, 471 | .intro-header .post-heading .meta { 472 | line-height: 1.1; 473 | display: block; 474 | } 475 | .intro-header .post-heading .subheading { 476 | /* Hux learn from 477 | * TypeIsBeautiful, 478 | * [This Post](http://zhuanlan.zhihu.com/ibuick/20186806) etc. 479 | */ 480 | font-family: -apple-system, "Helvetica Neue", "Arial", "PingFang SC", "Hiragino Sans GB", "STHeiti", "Microsoft YaHei", "Microsoft JhengHei", "Source Han Sans SC", "Noto Sans CJK SC", "Source Han Sans CN", "Noto Sans SC", "Source Han Sans TC", "Noto Sans CJK TC", "WenQuanYi Micro Hei", SimSun, sans-serif; 481 | line-height: 1.7; 482 | font-size: 17px; 483 | line-height: 1.4; 484 | font-weight: normal; 485 | margin: 10px 0 30px; 486 | margin-top: -5px; 487 | } 488 | .intro-header .post-heading .meta { 489 | font-family: 'Lora', 'Times New Roman', serif; 490 | font-style: italic; 491 | font-weight: 300; 492 | font-size: 18px; 493 | } 494 | .intro-header .post-heading .meta a { 495 | color: white; 496 | } 497 | @media only screen and (min-width: 768px) { 498 | .intro-header .post-heading h1 { 499 | font-size: 55px; 500 | } 501 | .intro-header .post-heading .subheading { 502 | font-size: 30px; 503 | } 504 | .intro-header .post-heading .meta { 505 | font-size: 20px; 506 | } 507 | } 508 | .post-preview > a { 509 | color: #404040; 510 | } 511 | .post-preview > a:hover, 512 | .post-preview > a:focus { 513 | text-decoration: none; 514 | color: #0085a1; 515 | } 516 | .post-preview > a > .post-title { 517 | font-size: 21px; 518 | line-height: 1.3; 519 | margin-top: 30px; 520 | margin-bottom: 8px; 521 | } 522 | .post-preview > a > .post-subtitle { 523 | font-size: 15px; 524 | line-height: 1.3; 525 | margin: 0; 526 | font-weight: 300; 527 | margin-bottom: 10px; 528 | } 529 | .post-preview > .post-meta { 530 | font-family: 'Lora', 'Times New Roman', serif; 531 | color: #808080; 532 | font-size: 16px; 533 | font-style: italic; 534 | margin-top: 0; 535 | } 536 | .post-preview > .post-meta > a { 537 | text-decoration: none; 538 | color: #404040; 539 | } 540 | .post-preview > .post-meta > a:hover, 541 | .post-preview > .post-meta > a:focus { 542 | color: #0085a1; 543 | text-decoration: underline; 544 | } 545 | @media only screen and (min-width: 768px) { 546 | .post-preview > a > .post-title { 547 | font-size: 26px; 548 | line-height: 1.3; 549 | margin-bottom: 10px; 550 | } 551 | .post-preview > a > .post-subtitle { 552 | font-size: 16px; 553 | } 554 | .post-preview .post-meta { 555 | font-size: 18px; 556 | } 557 | } 558 | .post-content-preview { 559 | font-size: 13px; 560 | font-style: italic; 561 | color: #a3a3a3; 562 | } 563 | .post-content-preview:hover { 564 | color: #0085a1; 565 | } 566 | @media only screen and (min-width: 768px) { 567 | .post-content-preview { 568 | font-size: 14px; 569 | } 570 | } 571 | .section-heading { 572 | font-size: 36px; 573 | margin-top: 60px; 574 | font-weight: 700; 575 | } 576 | .caption { 577 | text-align: center; 578 | font-size: 14px; 579 | padding: 10px; 580 | font-style: italic; 581 | margin: 0; 582 | display: block; 583 | border-bottom-right-radius: 5px; 584 | border-bottom-left-radius: 5px; 585 | } 586 | footer { 587 | font-size: 20px; 588 | padding: 50px 0 65px; 589 | } 590 | footer .list-inline { 591 | margin: 0; 592 | padding: 0; 593 | } 594 | footer .copyright { 595 | font-size: 14px; 596 | text-align: center; 597 | margin-bottom: 0; 598 | } 599 | footer .copyright a { 600 | color: #337ab7; 601 | } 602 | footer .copyright a:hover, 603 | footer .copyright a:focus { 604 | color: #0085a1; 605 | } 606 | .floating-label-form-group { 607 | font-size: 14px; 608 | position: relative; 609 | margin-bottom: 0; 610 | padding-bottom: 0.5em; 611 | border-bottom: 1px solid #eeeeee; 612 | } 613 | .floating-label-form-group input, 614 | .floating-label-form-group textarea { 615 | z-index: 1; 616 | position: relative; 617 | padding-right: 0; 618 | padding-left: 0; 619 | border: none; 620 | border-radius: 0; 621 | font-size: 1.5em; 622 | background: none; 623 | box-shadow: none !important; 624 | resize: none; 625 | } 626 | .floating-label-form-group label { 627 | display: block; 628 | z-index: 0; 629 | position: relative; 630 | top: 2em; 631 | margin: 0; 632 | font-size: 0.85em; 633 | line-height: 1.764705882em; 634 | vertical-align: middle; 635 | vertical-align: baseline; 636 | opacity: 0; 637 | -webkit-transition: top 0.3s ease,opacity 0.3s ease; 638 | -moz-transition: top 0.3s ease,opacity 0.3s ease; 639 | -ms-transition: top 0.3s ease,opacity 0.3s ease; 640 | transition: top 0.3s ease,opacity 0.3s ease; 641 | } 642 | .floating-label-form-group::not(:first-child) { 643 | padding-left: 14px; 644 | border-left: 1px solid #eeeeee; 645 | } 646 | .floating-label-form-group-with-value label { 647 | top: 0; 648 | opacity: 1; 649 | } 650 | .floating-label-form-group-with-focus label { 651 | color: #0085a1; 652 | } 653 | form .row:first-child .floating-label-form-group { 654 | border-top: 1px solid #eeeeee; 655 | } 656 | .btn { 657 | /* Hux learn from 658 | * TypeIsBeautiful, 659 | * [This Post](http://zhuanlan.zhihu.com/ibuick/20186806) etc. 660 | */ 661 | font-family: -apple-system, "Helvetica Neue", "Arial", "PingFang SC", "Hiragino Sans GB", "STHeiti", "Microsoft YaHei", "Microsoft JhengHei", "Source Han Sans SC", "Noto Sans CJK SC", "Source Han Sans CN", "Noto Sans SC", "Source Han Sans TC", "Noto Sans CJK TC", "WenQuanYi Micro Hei", SimSun, sans-serif; 662 | line-height: 1.7; 663 | text-transform: uppercase; 664 | font-size: 14px; 665 | font-weight: 800; 666 | letter-spacing: 1px; 667 | border-radius: 0; 668 | padding: 15px 25px; 669 | } 670 | .btn-lg { 671 | font-size: 16px; 672 | padding: 25px 35px; 673 | } 674 | .btn-default:hover, 675 | .btn-default:focus { 676 | background-color: #0085a1; 677 | border: 1px solid #0085a1; 678 | color: white; 679 | } 680 | .pager { 681 | margin: 20px 0 0 !important; 682 | padding: 0px !important; 683 | } 684 | .pager li > a, 685 | .pager li > span { 686 | /* Hux learn from 687 | * TypeIsBeautiful, 688 | * [This Post](http://zhuanlan.zhihu.com/ibuick/20186806) etc. 689 | */ 690 | font-family: -apple-system, "Helvetica Neue", "Arial", "PingFang SC", "Hiragino Sans GB", "STHeiti", "Microsoft YaHei", "Microsoft JhengHei", "Source Han Sans SC", "Noto Sans CJK SC", "Source Han Sans CN", "Noto Sans SC", "Source Han Sans TC", "Noto Sans CJK TC", "WenQuanYi Micro Hei", SimSun, sans-serif; 691 | line-height: 1.7; 692 | text-transform: uppercase; 693 | font-size: 13px; 694 | font-weight: 800; 695 | letter-spacing: 1px; 696 | padding: 10px; 697 | background-color: white; 698 | border-radius: 0; 699 | } 700 | @media only screen and (min-width: 768px) { 701 | .pager li > a, 702 | .pager li > span { 703 | font-size: 14px; 704 | padding: 15px 25px; 705 | } 706 | } 707 | .pager li > a { 708 | color: #404040; 709 | } 710 | .pager li > a:hover, 711 | .pager li > a:focus { 712 | color: white; 713 | background-color: #0085a1; 714 | border: 1px solid #0085a1; 715 | } 716 | .pager .disabled > a, 717 | .pager .disabled > a:hover, 718 | .pager .disabled > a:focus, 719 | .pager .disabled > span { 720 | color: #808080; 721 | background-color: #404040; 722 | cursor: not-allowed; 723 | } 724 | ::-moz-selection { 725 | color: white; 726 | text-shadow: none; 727 | background: #0085a1; 728 | } 729 | ::selection { 730 | color: white; 731 | text-shadow: none; 732 | background: #0085a1; 733 | } 734 | img::selection { 735 | color: white; 736 | background: transparent; 737 | } 738 | img::-moz-selection { 739 | color: white; 740 | background: transparent; 741 | } 742 | body { 743 | webkit-tap-highlight-color: #0085a1; 744 | } 745 | /* Hux add tags support */ 746 | .tags { 747 | margin-bottom: -5px; 748 | } 749 | .tags a, 750 | .tags .tag { 751 | display: inline-block; 752 | border: 1px solid rgba(255, 255, 255, 0.8); 753 | border-radius: 999em; 754 | padding: 0 10px; 755 | color: #ffffff; 756 | line-height: 24px; 757 | font-size: 12px; 758 | text-decoration: none; 759 | margin: 0 1px; 760 | margin-bottom: 6px; 761 | } 762 | .tags a:hover, 763 | .tags .tag:hover, 764 | .tags a:active, 765 | .tags .tag:active { 766 | color: white; 767 | border-color: white; 768 | background-color: rgba(255, 255, 255, 0.4); 769 | text-decoration: none; 770 | } 771 | @media only screen and (min-width: 768px) { 772 | .tags a, 773 | .tags .tag { 774 | margin-right: 5px; 775 | } 776 | } 777 | #tag-heading { 778 | padding: 70px 0 60px; 779 | } 780 | @media only screen and (min-width: 768px) { 781 | #tag-heading { 782 | padding: 55px 0; 783 | } 784 | } 785 | #tag_cloud { 786 | margin: 20px 0 15px 0; 787 | } 788 | #tag_cloud a, 789 | #tag_cloud .tag { 790 | font-size: 14px; 791 | border: none; 792 | line-height: 28px; 793 | margin: 0 2px; 794 | margin-bottom: 8px; 795 | background: #D6D6D6; 796 | } 797 | #tag_cloud a:hover, 798 | #tag_cloud .tag:hover, 799 | #tag_cloud a:active, 800 | #tag_cloud .tag:active { 801 | background-color: #0085a1 !important; 802 | } 803 | @media only screen and (min-width: 768px) { 804 | #tag_cloud { 805 | margin-bottom: 25px; 806 | } 807 | } 808 | .tag-comments { 809 | font-size: 12px; 810 | } 811 | @media only screen and (min-width: 768px) { 812 | .tag-comments { 813 | font-size: 14px; 814 | } 815 | } 816 | .t:first-child { 817 | margin-top: 0px; 818 | } 819 | .listing-seperator { 820 | color: #0085a1; 821 | font-size: 21px !important; 822 | } 823 | .listing-seperator::before { 824 | margin-right: 5px; 825 | } 826 | @media only screen and (min-width: 768px) { 827 | .listing-seperator { 828 | font-size: 20px !important; 829 | line-height: 2 !important; 830 | } 831 | } 832 | .one-tag-list .tag-text { 833 | font-weight: 200; 834 | /* Hux learn from 835 | * TypeIsBeautiful, 836 | * [This Post](http://zhuanlan.zhihu.com/ibuick/20186806) etc. 837 | */ 838 | font-family: -apple-system, "Helvetica Neue", "Arial", "PingFang SC", "Hiragino Sans GB", "STHeiti", "Microsoft YaHei", "Microsoft JhengHei", "Source Han Sans SC", "Noto Sans CJK SC", "Source Han Sans CN", "Noto Sans SC", "Source Han Sans TC", "Noto Sans CJK TC", "WenQuanYi Micro Hei", SimSun, sans-serif; 839 | line-height: 1.7; 840 | } 841 | .one-tag-list .post-preview { 842 | position: relative; 843 | } 844 | .one-tag-list .post-preview > a .post-title { 845 | font-size: 16px; 846 | font-weight: 500; 847 | margin-top: 20px; 848 | } 849 | .one-tag-list .post-preview > a .post-subtitle { 850 | font-size: 12px; 851 | } 852 | .one-tag-list .post-preview > .post-meta { 853 | position: absolute; 854 | right: 5px; 855 | bottom: 0px; 856 | margin: 0px; 857 | font-size: 12px; 858 | line-height: 12px; 859 | } 860 | @media only screen and (min-width: 768px) { 861 | .one-tag-list .post-preview { 862 | margin-left: 20px; 863 | } 864 | .one-tag-list .post-preview > a > .post-title { 865 | font-size: 18px; 866 | line-height: 1.3; 867 | } 868 | .one-tag-list .post-preview > a > .post-subtitle { 869 | font-size: 14px; 870 | } 871 | .one-tag-list .post-preview .post-meta { 872 | font-size: 18px; 873 | } 874 | } 875 | /* Tags support End*/ 876 | /* Hux make all img responsible in post-container */ 877 | .post-container img { 878 | display: block; 879 | max-width: 100%; 880 | height: auto; 881 | margin: 1.5em auto 1.6em auto; 882 | } 883 | /* Hux Optimize UserExperience */ 884 | .navbar-default .navbar-toggle:focus, 885 | .navbar-default .navbar-toggle:hover { 886 | background-color: inherit; 887 | } 888 | .navbar-default .navbar-toggle:active { 889 | background-color: rgba(255, 255, 255, 0.25); 890 | } 891 | /* Hux customize Style for navBar button */ 892 | .navbar-default .navbar-toggle { 893 | border-color: transparent; 894 | padding: 19px 16px; 895 | margin-top: 2px; 896 | margin-right: 2px; 897 | margin-bottom: 2px; 898 | border-radius: 50%; 899 | } 900 | .navbar-default .navbar-toggle .icon-bar { 901 | width: 18px; 902 | border-radius: 0px; 903 | background-color: white; 904 | } 905 | .navbar-default .navbar-toggle .icon-bar + .icon-bar { 906 | margin-top: 3px; 907 | } 908 | /* Hux customize Style for Duoshuo */ 909 | .comment { 910 | margin-top: 20px; 911 | } 912 | .comment #ds-thread #ds-reset a.ds-like-thread-button { 913 | border: 1px solid #ddd; 914 | border-radius: 0px; 915 | background: white; 916 | box-shadow: none; 917 | text-shadow: none; 918 | } 919 | .comment #ds-thread #ds-reset li.ds-tab a.ds-current { 920 | border: 1px solid #ddd; 921 | border-radius: 0px; 922 | background: white; 923 | box-shadow: none; 924 | text-shadow: none; 925 | } 926 | .comment #ds-thread #ds-reset .ds-textarea-wrapper { 927 | background: none; 928 | } 929 | .comment #ds-thread #ds-reset .ds-gradient-bg { 930 | background: none; 931 | } 932 | #ds-smilies-tooltip ul.ds-smilies-tabs li a { 933 | background: white !important; 934 | } 935 | .page-fullscreen .intro-header { 936 | position: fixed; 937 | left: 0; 938 | top: 0; 939 | width: 100%; 940 | height: 100%; 941 | } 942 | .page-fullscreen #tag-heading { 943 | position: fixed; 944 | left: 0; 945 | top: 0; 946 | padding-bottom: 150px; 947 | width: 100%; 948 | height: 100%; 949 | display: -webkit-box; 950 | -webkit-box-orient: vertical; 951 | -webkit-box-pack: center; 952 | -webkit-box-align: center; 953 | display: -webkit-flex; 954 | -webkit-align-items: center; 955 | -webkit-justify-content: center; 956 | -webkit-flex-direction: column; 957 | display: flex; 958 | align-items: center; 959 | justify-content: center; 960 | flex-direction: column; 961 | } 962 | .page-fullscreen footer { 963 | position: absolute; 964 | width: 100%; 965 | bottom: 0; 966 | padding-bottom: 20px; 967 | opacity: 0.6; 968 | color: #fff; 969 | } 970 | .page-fullscreen footer .copyright { 971 | color: #fff; 972 | } 973 | .page-fullscreen footer .copyright a { 974 | color: #fff; 975 | } 976 | .page-fullscreen footer .copyright a:hover { 977 | color: #ddd; 978 | } 979 | --------------------------------------------------------------------------------