15 | <% if (item.excerpt && index && theme.index.excerpt_link){ %> 16 | <%= theme.index.excerpt_link %> 17 | <% } %> 18 |
19 |├── .gitignore ├── LICENSE ├── README.md ├── README_zh.md ├── _config.yml ├── languages ├── default.yml ├── zh-CN.yml └── zh-TW.yml ├── layout ├── _partial │ ├── after_footer.ejs │ ├── analytics.ejs │ ├── archive.ejs │ ├── article.ejs │ ├── article_row.ejs │ ├── categories.ejs │ ├── footer.ejs │ ├── head.ejs │ ├── header.ejs │ ├── mathjax.ejs │ ├── pagination.ejs │ ├── post │ │ ├── article.ejs │ │ ├── catetags.ejs │ │ ├── comment.ejs │ │ ├── footer.ejs │ │ ├── gallery.ejs │ │ ├── header.ejs │ │ ├── jiathis.ejs │ │ └── pagination.ejs │ ├── search.ejs │ ├── sidebar.ejs │ ├── tags.ejs │ ├── tinysou_search.ejs │ └── totop.ejs ├── _widget │ ├── archive.ejs │ ├── category.ejs │ ├── douban.ejs │ ├── github-card.ejs │ ├── links.ejs │ ├── rss.ejs │ ├── tag.ejs │ ├── tagcloud.ejs │ └── weibo.ejs ├── archive.ejs ├── category.ejs ├── index.ejs ├── layout.ejs ├── page.ejs ├── post.ejs └── tag.ejs ├── scripts └── fancybox.js └── source ├── css ├── _base │ ├── font.styl │ ├── highlight │ │ ├── highlight.styl │ │ └── theme.styl │ ├── public.styl │ └── variable.styl ├── _partial │ ├── article.styl │ ├── aside.styl │ ├── duoshuo.styl │ ├── footer.styl │ ├── gallery.styl │ ├── header.styl │ ├── helper.styl │ ├── index.styl │ └── totop.styl └── style.styl ├── fancybox ├── blank.gif ├── fancybox_loading.gif ├── fancybox_loading@2x.gif ├── fancybox_overlay.png ├── fancybox_sprite.png ├── fancybox_sprite@2x.png ├── helpers │ ├── fancybox_buttons.png │ ├── jquery.fancybox-buttons.css │ ├── jquery.fancybox-buttons.js │ ├── jquery.fancybox-media.js │ ├── jquery.fancybox-thumbs.css │ └── jquery.fancybox-thumbs.js ├── jquery.fancybox.css ├── jquery.fancybox.js └── jquery.fancybox.pack.js ├── font ├── FontAwesome.otf ├── coveredbyyourgrace-webfont.eot ├── coveredbyyourgrace-webfont.svg ├── coveredbyyourgrace-webfont.ttf ├── coveredbyyourgrace-webfont.woff ├── fontawesome-webfont.eot ├── fontawesome-webfont.svg ├── fontawesome-webfont.ttf ├── fontawesome-webfont.woff ├── fontdiao.eot ├── fontdiao.svg ├── fontdiao.ttf └── fontdiao.woff ├── img ├── author.jpg ├── banner.jpg ├── cc-by-nc-nd.svg ├── cc-by-nc-sa.svg ├── cc-by-nc.svg ├── cc-by-nd.svg ├── cc-by-sa.svg ├── cc-by.svg ├── cc-zero.svg ├── favicon.ico ├── jacman.jpg ├── logo.png ├── logo.svg └── scrollup.png └── js ├── gallery.js ├── jquery-2.0.3.min.js ├── jquery.imagesloaded.min.js ├── jquery.qrcode-0.12.0.min.js └── totop.js /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 Wu Chong 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Jacman 2 | 3 | [中文说明](/README_zh.md) 4 | 5 | Jacman is a fresh looking and responsive theme for [Hexo](http://hexo.io) with more features and some build-in Chinese service based on [Pacman](https://github.com/A-limon/pacman). 6 | 7 | **Jacman support Hexo 3.0 now !** 8 | 9 | [Demo](http://jacman.wuchong.me) 10 | 11 | [如何使用 Jacman 主题](http://jacman.wuchong.me/2014/11/20/how-to-use-jacman/) 12 | 13 | ## Installation 14 | ### Install 15 | ``` 16 | $ git clone https://github.com/wuchong/jacman.git themes/jacman 17 | ``` 18 | **Jacman requires Hexo 2.7 and above.** 19 | ### Enable 20 | Modify `theme` setting in blog folder` _config.yml` to `jacman`. 21 | ### Update 22 | ``` 23 | cd themes/jacman 24 | git pull origin master 25 | ``` 26 | **please backup your `_config.yml` file before update.** 27 | 28 | ## Configuration 29 | 30 | Modify settings in `/themes/jacman/_config.yml`. [Learn More](https://github.com/wuchong/jacman/wiki/%E9%85%8D%E7%BD%AE%E6%8C%87%E5%8D%97). 31 | 32 | ## Features 33 | - **menu** 34 | Main navigation menu. 35 | - **widget** 36 | Widgets displaying in sidebar.The category,tag,rss,archive,tagcloud,links,weibo are supported. 37 | - **Image** 38 | Images about favicon, site logo, author image, banner image. Support different image styles like `img-logo`,`img-topic`,`img-center` etc. 39 | - **index** 40 | Two different home page display modes.You can visit [Demo](http://jacman.wuchong.me) to check the difference. 41 | - **author** 42 | Author imformation, used to show your social network links on the bottom right. Including github, stackoverflow, twitter, facebook, linkedin, google+, weibo, douban, zhihu, email. 43 | - **toc** 44 | Show Table Of Contents in article & aside. 45 | - **comments** 46 | [duoshuo](http://duoshuo.com/) & [disqus](https://disqus.com/) & [网易云跟帖](https://gentie.163.com/index.html) & [畅言](http://changyan.kuaizhan.com/) are supported. 47 | - **jiathis** 48 | Build-in share tool or [JiaThis](http://www.jiathis.com/) share buttons at the bottom of articles. 49 | - **Analytiscs** 50 | [Google analytics](http://www.google.com/analytics/) & [Baidu tongji](http://tongji.baidu.com/) & [CNZZ tongji](http://www.cnzz.com/) are all supported. 51 | - **Search** 52 | [Googlle Custom Search](https://www.google.com/cse/ ) & [Baidu Site Search](http://zn.baidu.com/) & [Tiny Search](http://tinysou.com/) are supported. 53 | - **totop** 54 | Scroll to top 55 | - **rss** 56 | RSS subscription link (change if using Feedburner). 57 | - **fancybox** 58 | Enable [Fancybox](http://fancyapps.com/fancybox/) 59 | - **custom theme color** 60 | Mondify theme color in `_config.yaml` instead of finding unfamiliar stylus files. 61 | - **others** 62 | You can configure sidebar not show in post pages. 63 | 64 | You can learn how to use them from [Configuration](https://github.com/wuchong/jacman/wiki/配置指南). 65 | 66 | ## Sites 67 | - [Jacman Theme](http://jacman.wuchong.me) - The demo site of Jacman Theme 68 | - [阿杜个人博客](http://ralphadu.com) - 阿杜个人博客 69 | - [PhiloSky's Blog](http://philosky.ml/) - Personal blog 70 | - [hiluSdream](http://hiluluke.cn) - 梦想是无所谓无的,无所谓有的 71 | - [Melface](http://melface.tk) - Personal blog 72 | - [heamon7's Utopia](http://heamon7.com) - 修行绝尘,悟道涉俗 73 | - [PegasusWang's Blog](http://ningning.today) - 你的问题主要在于读书不多而想得太多 74 | - [青劲草](http://www.caoqq.net) - 学会记录成长点滴 75 | - [Vigorass](http://cscao.com) - Learn to record dripping growth 76 | - [MoqiZhan](http://moqizhan.com) - 人生就是不停的战斗 77 | - [Think Differently](http://think-diff.me/) - If You Can Think Differently, You Can Act Differently. 78 | - [ylf](http://wangyangyang.gitcafe.com) - 王洋洋 79 | - [Gevin's blog](http://blog.igevin.info/) - Stay hungry, stay foolish; Stop when you are perfect. 80 | - [keychar](http://keychar.com) - A technology blog, design & programming. 81 | - [peng的博客](http://chenpengdsp.com) - 人生就是不停的战斗 82 | - [More and More](http://aeesky.github.io) -刚起步:) 83 | - [好久不见](http://dpast.org) - Julian Zhu 84 | - [keke2014's blog](http://jukezhang.com/) - Stay hungry, stay foolish - Steve Jobs 85 | - [Eurry](http://www.eurry.net) - Eurry's Blog. 86 | - [sencle's blog](http://isencle.com) -just do it 87 | - [Oxymoron's Blog](http://ioxymoron.me) - Let's start from here. 88 | - [HelloDog](http://wsgzao.github.io) - Keep Clam and Carry On 89 | - [屠城|屠夫9441的博客](http://haomwei.com) - 苟全性命于乱世,不求闻达于诸侯。 90 | - [Ice He. 何志遠](http://icehe.github.io/) - Less is more. 寧靜致遠。 91 | - [prokitty,侏罗纪公园](http://www.prokitty.com) -Belive yourself,belive Cherry. 92 | - [Ceclinux](http://ceclinux.org) - Arch is the best 93 | - [BruceGe's blog](http://brucege.com) - Start Blogging 94 | - [Yangxiaolei's blog](http://yangxiaolei.me) - 让知识成为信仰,让优秀成为习惯 95 | - [CC's blog](http://ccloveyou.org) - CC 96 | - [TadGuo's pages](http://watermeion.github.io) - More is different. 97 | - [Mutse's blog](http://mutse.github.io) - Love Life, Love open source 98 | - [唐巧的技术博客](http://blog.devtang.com/) - 巧神 99 | - [Salogs](http://salogs.com/) - 拥抱开源,分享经验! 100 | - [graysongs's club](http://www.graysongs.club/) - share video games here! 101 | - [叉叉哥的博客](http://xxgblog.com/) - 叉叉哥的博客 102 | 103 | If you are using Jacman,you can add your site [here](https://github.com/wuchong/jacman/wiki/Sites) ! I'll push the available sites here. 104 | 105 | ## License 106 | [MIT](/LICENSE) 107 | -------------------------------------------------------------------------------- /README_zh.md: -------------------------------------------------------------------------------- 1 | # Jacman 2 | 3 | [README](/README.md) 4 | 5 | Jacman 是为 [Hexo](http://hexo.io) 设计的一款清新且具有响应式的主题,拥有更丰富的特性并支持了很多的国内服务。Jacman 始于 [Pacman](https://github.com/A-limon/pacman) 修改而来。 6 | 7 | **Jacman 现已支持 Hexo 3.0 !** 8 | 9 | [主题演示](http://jacman.wuchong.me) 10 | 11 | [如何使用 Jacman 主题](http://jacman.wuchong.me/2014/11/20/how-to-use-jacman/) 12 | 13 | ## 安装教程 14 | ### 安装 15 | ``` 16 | $ git clone https://github.com/wuchong/jacman.git themes/jacman 17 | ``` 18 | **Jacman 需要 Hexo 2.7 及以上版本** 19 | ### 启用 20 | 修改博客根目录下的配置文件 `_config.yml`,把`theme`的值修改为 `jacman`. 21 | ### 更新 22 | ``` 23 | cd themes/jacman 24 | git pull origin master 25 | ``` 26 | **请先备份您主题目录下的 `_config.yml` 文件后再升级。** 27 | 28 | ## 配置指南 29 | 30 | 修改 `/themes/jacman/_config.yml` 中的配置。通过[配置指南wiki](https://github.com/wuchong/jacman/wiki/%E9%85%8D%E7%BD%AE%E6%8C%87%E5%8D%97)了解更多 31 | 32 | ## 功能 33 | - **菜单 menu** 34 | 主导航菜单 35 | - **控件 widget** 36 | 侧边栏的控件。包括:分类、标签、RSS、归档、标签云、友情链接、微博秀。 37 | - **图片相关 Image** 38 | 设置网站图标、网站logo、作者头像、博客顶部大图等。还提供了多种图片样式`img-logo`,`img-topic`,`img-center`等 39 | - **首页模式 index** 40 | 主题提供了两种首页展示模式,你可以访问 [主题演示](http://jacman.wuchong.me) 来了解其不同。 41 | - **作者 author** 42 | 作者信息,主要用于展示网站右下角的社交网络链接。包括:微博、豆瓣、知乎、邮箱、GitHub、StackOverflow、Twitter、Facebook、Linkedin、Google+。 43 | - **目录 toc** 44 | 在文章中和侧边栏可以显示目录。 45 | - **评论 comments** 46 | 支持 [多说](http://duoshuo.com/) & [disqus](https://disqus.com/) & [网易云跟帖](https://gentie.163.com/index.html) & [畅言](http://changyan.kuaizhan.com/) 评论。 47 | - **分享 jiathis** 48 | 启用 内建分享工具 或 [加网](http://www.jiathis.com/) 分享系统。 49 | - **网站统计 Analytiscs** 50 | 支持 [谷歌统计](http://www.google.com/analytics/) & [百度统计](http://tongji.baidu.com/) & [CNZZ站长统计](http://www.cnzz.com/)。 51 | - **Search** 52 | 支持 [谷歌自定义搜索](https://www.google.com/cse/ ) & [百度站内搜索](http://zn.baidu.com/) &[微搜索](http://tinysou.com/)。 53 | - **totop** 54 | 回到顶部。 55 | - **rss** 56 | RSS 订阅链接。 57 | - **fancybox** 58 | 图片查看的 [Fancybox](http://fancyapps.com/fancybox/) 工具。 59 | - **自定义主题颜色** 60 | 在`_config.yaml`中就可以修改主题的颜色,而不用去找那些奇怪的 stylus 文件。 61 | - **其他** 62 | 你可以设置侧边栏在博文页面中不显示。 63 | 64 | 你可以通过[配置指南](https://github.com/wuchong/jacman/wiki/配置指南)了解更多使用细节。 65 | 66 | ## 网站列表 67 | - [Jacman Theme](http://jacman.wuchong.me) - The demo site of Jacman Theme 68 | - [Jark's Blog](http://wuchong.me) - The author's blog of Jacman 69 | - [阿杜个人博客](http://ralphadu.com) - 阿杜个人博客 70 | - [PhiloSky's Blog](http://philosky.ml/) - Personal blog 71 | - [hiluSdream](http://hiluluke.cn) - 梦想是无所谓无的,无所谓有的 72 | - [Melface](http://melface.tk) - Personal blog 73 | - [heamon7's Utopia](http://heamon7.com) - 修行绝尘,悟道涉俗 74 | - [PegasusWang's Blog](http://ningning.today) - 你的问题主要在于读书不多而想得太多 75 | - [青劲草](http://www.caoqq.net) - 学会记录成长点滴 76 | - [Vigorass](http://cscao.com) - Learn to record dripping growth 77 | - [MoqiZhan](http://moqizhan.com) - 人生就是不停的战斗 78 | - [Think Differently](http://think-diff.me/) - If You Can Think Differently, You Can Act Differently. 79 | - [ylf](http://wangyangyang.gitcafe.com) - 王洋洋 80 | - [Gevin's blog](http://blog.igevin.info/) - Stay hungry, stay foolish; Stop when you are perfect. 81 | - [keychar](http://keychar.com) - A technology blog, design & programming. 82 | - [peng的博客](http://chenpengdsp.com) - 人生就是不停的战斗 83 | - [More and More](http://aeesky.github.io) -刚起步:) 84 | - [好久不见](http://dpast.org) - Julian Zhu 85 | - [keke2014's blog](http://jukezhang.com/) - Stay hungry, stay foolish - Steve Jobs 86 | - [Eurry](http://www.eurry.net) - Eurry's Blog. 87 | - [sencle's blog](http://isencle.com) -just do it 88 | - [Oxymoron's Blog](http://ioxymoron.me) - Let's start from here. 89 | - [HelloDog](http://wsgzao.github.io) - Keep Clam and Carry On 90 | - [屠城|屠夫9441的博客](http://haomwei.com) - 苟全性命于乱世,不求闻达于诸侯。 91 | - [Ice He. 何志遠](http://icehe.github.io/) - Less is more. 寧靜致遠。 92 | - [prokitty,侏罗纪公园](http://www.prokitty.com) -Belive yourself,belive Cherry. 93 | - [Ceclinux](http://ceclinux.org) - Arch is the best 94 | - [BruceGe's blog](http://brucege.com) - Start Blogging 95 | - [Yangxiaolei's blog](http://yangxiaolei.me) - 让知识成为信仰,让优秀成为习惯 96 | - [CC's blog](http://ccloveyou.org) - CC 97 | - [TadGuo's pages](http://watermeion.github.io) - More is different. 98 | - [Mutse's blog](http://mutse.github.io) - 爱生活,爱开源 99 | - [Salogs](http://salogs.com/) - 拥抱开源,分享经验! 100 | - [叉叉哥的博客](http://xxgblog.com/) - 叉叉哥的博客 101 | 102 | 如果你正在使用 Jacman主题,欢迎将网址添加到[wiki的网站列表](https://github.com/wuchong/jacman/wiki/Sites)。我会不定期进行整理。 103 | 104 | ## 协议 105 | [MIT](/LICENSE) 106 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | ##### Menu 2 | menu: 3 | Home: / 4 | Archives: /archives 5 | About: /about 6 | ## you can create `tags` and `categories` folders in `../source`. 7 | ## And create a `index.md` file in each of them. 8 | ## set `front-matter`as 9 | ## layout: tags (or categories) 10 | ## title: tags (or categories) 11 | ## --- 12 | 13 | #### Widgets 14 | widgets: 15 | - github-card 16 | - category 17 | - tag 18 | - links 19 | - douban 20 | - rss 21 | - weibo 22 | ## provide eight widgets:github-card,category,tag,rss,archive,tagcloud,links,weibo 23 | 24 | 25 | 26 | #### RSS 27 | rss: /atom.xml ## RSS address. 28 | 29 | #### Image 30 | imglogo: 31 | enable: true ## display image logo true/false. 32 | src: img/logo.png ## `.svg` and `.png` are recommended,please put image into the theme folder `/jacman/source/img`. 33 | favicon: img/favicon.ico ## size:32px*32px,`.ico` is recommended,please put image into the theme folder `/jacman/source/img`. 34 | apple_icon: img/jacman.jpg ## size:114px*114px,please put image into the theme folder `/jacman/source/img`. 35 | author_img: img/author.jpg ## size:220px*220px.display author avatar picture.if don't want to display,please don't set this. 36 | banner_img: #img/banner.jpg ## size:1920px*200px+. Banner Picture 37 | ### Theme Color 38 | theme_color: 39 | theme: '#2ca6cb' ##the defaut theme color is blue 40 | 41 | # 代码高亮主题 42 | # available: default | night 43 | highlight_theme: default 44 | 45 | #### index post is expanding or not 46 | index: 47 | expand: true ## default is unexpanding,so you can only see the short description of each post. 48 | excerpt_link: Read More 49 | 50 | close_aside: false #close sidebar in post page if true 51 | mathjax: false #enable mathjax if true 52 | 53 | ### Creative Commons License Support, see http://creativecommons.org/ 54 | ### you can choose: by , by-nc , by-nc-nd , by-nc-sa , by-nd , by-sa , zero 55 | creative_commons: none 56 | 57 | #### Author information 58 | author: 59 | intro_line1: "Hello ,I'm Larry Page in Google." ## your introduction on the bottom of the page 60 | intro_line2: "This is my blog,believe it or not." ## the 2nd line 61 | weibo: 2176287895 ## e.g. wuchong1014 or 2176287895 for http://weibo.com/2176287895 62 | weibo_verifier: b3593ceb ## e.g. b3593ceb Your weibo-show widget verifier ,if you use weibo-show it is needed. 63 | tsina: ## e.g. 2176287895 Your weibo ID,It will be used in share button. 64 | douban: ## e.g. wuchong1014 or your id for https://www.douban.com/people/wuchong1014 65 | zhihu: ## e.g. jark for http://www.zhihu.com/people/jark 66 | email: ## e.g. imjark@gmail.com 67 | twitter: ## e.g. jarkwu for https://twitter.com/jarkwu 68 | github: ## e.g. wuchong for https://github.com/wuchong 69 | facebook: ## e.g. imjark for https://facebook.com/imjark 70 | linkedin: ## e.g. wuchong1014 for https://www.linkedin.com/in/wuchong1014 71 | google_plus: ## e.g. "111190881341800841449" for https://plus.google.com/u/0/111190881341800841449, the "" is needed! 72 | stackoverflow: ## e.g. 3222790 for http://stackoverflow.com/users/3222790/jark 73 | ## if you set them, the corresponding share button will show on the footer 74 | 75 | #### Toc 76 | toc: 77 | article: true ## show contents in article. 78 | aside: true ## show contents in aside. 79 | ## you can set both of the value to true of neither of them. 80 | ## if you don't want display contents in a specified post,you can modify `front-matter` and add `toc: false`. 81 | 82 | #### Links 83 | links: 84 | 码农圈: https://coderq.com,一个面向程序员交流分享的新一代社区 85 | Jark's Blog: http://wuchong.me 86 | 87 | 88 | 89 | #### Comment 90 | duoshuo_shortname: ## e.g. wuchong your duoshuo short name. 91 | disqus_shortname: ## e.g. wuchong your disqus short name. 92 | gentie_key: ## your 163 gentie key, see https://gentie.163.com/ 93 | changyan_appid: ## changyan app id, see http://changyan.kuaizhan.com/ 94 | changyan_appkey: ## changyan app key, see http://changyan.kuaizhan.com/ 95 | 96 | 97 | #### Share button 98 | jiathis: 99 | enable: false ## if you use jiathis as your share tool,the built-in share tool won't be display. 100 | id: ## e.g. 1889330 your jiathis ID. 101 | tsina: ## e.g. 2176287895 Your weibo id,It will be used in share button. 102 | 103 | #### Analytics 104 | google_analytics: 105 | enable: false 106 | id: ## e.g. UA-46321946-2 your google analytics ID. 107 | site: ## e.g. wuchong.me your google analytics site or set the value as auto. 108 | ## You MUST upgrade to Universal Analytics first! 109 | ## https://developers.google.com/analytics/devguides/collection/upgrade/?hl=zh_CN 110 | baidu_tongji: 111 | enable: true 112 | sitecode: e6d1f421bbc9962127a50488f9ed37d1 ## e.g. e6d1f421bbc9962127a50488f9ed37d1 your baidu tongji site code 113 | cnzz_tongji: 114 | enable: false 115 | siteid: ## e.g. 1253575964 your cnzz tongji site id 116 | 117 | #### Miscellaneous 118 | ShowCustomFont: true ## you can change custom font in `variable.styl` and `font.styl` which in the theme folder `/jacman/source/css`. 119 | fancybox: true ## if you use gallery post or want use fancybox please set the value to true. 120 | totop: true ## if you want to scroll to top in every post set the value to true 121 | 122 | 123 | #### Custom Search 124 | google_cse: 125 | enable: false 126 | cx: ## e.g. 018294693190868310296:abnhpuysycw your Custom Search ID. 127 | ## https://www.google.com/cse/ 128 | ## To enable the custom search You must create a "search" folder in '/source' and a "index.md" file 129 | ## set the 'front-matter' as 130 | ## layout: search 131 | ## title: search 132 | ## --- 133 | baidu_search: ## http://zn.baidu.com/ 134 | enable: false 135 | id: ## e.g. "783281470518440642" for your baidu search id 136 | site: http://zhannei.baidu.com/cse/search ## your can change to your site instead of the default site 137 | 138 | tinysou_search: ## http://tinysou.com/ 139 | enable: false 140 | id: ## e.g. "4ac092ad8d749fdc6293" for your tiny search id 141 | -------------------------------------------------------------------------------- /languages/default.yml: -------------------------------------------------------------------------------- 1 | categories: Categories 2 | search: Search 3 | tags: Tags 4 | tagcloud: Tag Cloud 5 | prev: Prev 6 | next: Next 7 | comment: Comments 8 | contents: Contents 9 | archive_a: Archives 10 | archive_b: "Archives: %s" 11 | archive_date: "MMM YYYY" 12 | page: Page %d 13 | recent_posts: Recent Posts 14 | menu: Menu 15 | weibo: Weibo 16 | links: Links 17 | rss: RSS 18 | doubanshow: Douban Show 19 | github-card: Github Card 20 | showsidebar: Show Sidebar 21 | hidesidebar: Hide Sidebar 22 | updated: Updated 23 | totop: Back to Top 24 | datepublished: Published 25 | -------------------------------------------------------------------------------- /languages/zh-CN.yml: -------------------------------------------------------------------------------- 1 | categories: 分类 2 | search: 搜索 3 | tags: 标签 4 | tagcloud: 标签云 5 | prev: 上一页 6 | next: 下一页 7 | comment: 文章评论 8 | contents: 文章目录 9 | archive_a: 归档 10 | archive_b: 归档:%s 11 | archive_date: "YYYY 年 MM 月" 12 | page: 第 %d 页 13 | recent_posts: 近期文章 14 | menu: 菜单 15 | links: 友情链接 16 | weibo: 新浪微博 17 | rss: RSS 订阅 18 | doubanshow: 豆瓣秀 19 | github-card: Github 名片 20 | showsidebar: 显示侧边栏 21 | hidesidebar: 隐藏侧边栏 22 | updated: 更新日期 23 | totop: 返回顶部 24 | datepublished: 发表于 25 | -------------------------------------------------------------------------------- /languages/zh-TW.yml: -------------------------------------------------------------------------------- 1 | categories: 分類 2 | search: 搜索 3 | tags: 標簽 4 | tagcloud: 標簽雲 5 | prev: 上一頁 6 | next: 下一頁 7 | comment: 文章評論 8 | contents: 文章目錄 9 | archive_a: 歸檔 10 | archive_b: 歸檔:%s 11 | archive_date: "YYYY 年 MM 月" 12 | page: 第 %d 頁 13 | recent_posts: 近期文章 14 | menu: 菜單 15 | links: 友情鏈接 16 | weibo: 新浪微博 17 | rss: RSS 訂閱 18 | doubanshow: 豆瓣秀 19 | github-card: Github 名片 20 | showsidebar: 顯示側邊欄 21 | hidesidebar: 隱藏側邊欄 22 | updated: 更新日期 23 | totop: 返回頂部 24 | datepublished: 發表於 25 | -------------------------------------------------------------------------------- /layout/_partial/after_footer.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 57 | <% if (is_post()) { %> 58 | 83 | <% } %> 84 | <% if ((page.layout=='post'||page.layout=='page'||page.layout=='photo')&&!theme.jiathis.enable) { %> 85 | 133 | <% } %> 134 | 135 | <% if (theme.duoshuo_shortname && page.comments){ %> 136 | 147 | <% } %> 148 | <% if( (config.disqus_shortname || theme.disqus_shortname) && page.comments) { %> 149 | 170 | <% } %> 171 | <% if (theme.gentie_key && page.comments){ %> 172 | 180 | 181 | <% } %> 182 | 183 | <% if (theme.changyan_appid && page.comments){ %> 184 | 192 | <% } %> 193 | 194 | 195 | <% if (page.layout=='tags'||page.layout=='categories'){ %> 196 | 213 | <% } %> 214 | <% if (theme.fancybox){ %> 215 | 216 | 217 | 235 | <% } %> 236 | 237 | 238 | 239 | <%- partial('analytics') %> 240 | 241 | 242 | 243 | <%- partial('totop') %> 244 | 245 | 246 | 247 | <%- partial('mathjax') %> 248 | 249 | 250 | 251 | <%- partial('tinysou_search') %> 252 | 253 | -------------------------------------------------------------------------------- /layout/_partial/analytics.ejs: -------------------------------------------------------------------------------- 1 | <% if (theme.google_analytics.enable){ %> 2 | 10 | <% } %> 11 | 12 | <% if (theme.baidu_tongji.enable){ %> 13 | 22 | <% } %> 23 | 24 | <% if (theme.cnzz_tongji.enable){ %> 25 | 26 | <% } %> -------------------------------------------------------------------------------- /layout/_partial/archive.ejs: -------------------------------------------------------------------------------- 1 | <% 2 | var title = ''; 3 | var icon = ''; 4 | if (page.category){ 5 | title = page.category; 6 | icon = 'category'; 7 | }; 8 | if (page.tag){ 9 | title = page.tag; 10 | icon = 'tag'; 11 | }; 12 | if (page.archive){ 13 | icon = 'archive'; 14 | if (page.year) title = page.year+ (page.month ? '/' + page.month : ''); 15 | else title = __('archive_a'); 16 | }; 17 | %> 18 | 19 |
15 | <% if (item.excerpt && index && theme.index.excerpt_link){ %> 16 | <%= theme.index.excerpt_link %> 17 | <% } %> 18 |
19 |<%- item.description %>
33 | <% } else if(item.excerpt){ %> 34 |<%= strip_html(item.excerpt).replace(/^\s*/, '').replace(/\s*$/, '').substring(0, 140) %>
35 | <% } else {%> 36 |<%= strip_html(item.content).replace(/^\s*/, '').replace(/\s*$/, '').substring(0, 140) %>
37 | <% } %> 38 | <% } %> 39 | 40 | 41 |14 | 15 | 16 |
17 |<%= __('categories') %>
4 |<%= __('doubanshow') %>
5 |<%= __('github-card') %>
4 | 5 | 6 |<%= __('links') %>
3 |<%= __('tagcloud') %>
4 |<%= __('weibo') %>
3 | 4 |