├── .gitignore ├── LICENSE ├── README.md ├── _config.yml ├── languages ├── de.yml ├── default.yml ├── es.yml ├── ru.yml ├── zh-CN.yml └── zh-TW.yml ├── layout ├── _partial │ ├── after_footer.ejs │ ├── analytics.ejs │ ├── archive.ejs │ ├── article.ejs │ ├── comment.ejs │ ├── footer.ejs │ ├── head.ejs │ ├── header.ejs │ ├── pagination.ejs │ ├── post │ │ ├── category.ejs │ │ ├── gallery.ejs │ │ ├── share.ejs │ │ ├── tag.ejs │ │ └── title.ejs │ └── sidebar.ejs ├── _widget │ ├── category.ejs │ ├── links.ejs │ ├── profile.ejs │ ├── recent_posts.ejs │ ├── search.ejs │ ├── tag.ejs │ ├── tagcloud.ejs │ └── weibo.ejs ├── archive.ejs ├── category.ejs ├── index.ejs ├── layout.ejs ├── page.ejs ├── post.ejs └── tag.ejs └── source ├── 4804c6e7655297ff7c7ad85c68482faadbc5451c19583d-Cv7iLq.jpg ├── beian.png ├── cc-by-sa.png ├── css ├── _base │ ├── layout.styl │ ├── utils.styl │ └── variable.styl ├── _partial │ ├── archive.styl │ ├── article.styl │ ├── comment.styl │ ├── footer.styl │ ├── header.styl │ ├── index.styl │ ├── sidebar.styl │ └── syntax.styl ├── font │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.svg │ ├── fontawesome-webfont.ttf │ └── fontawesome-webfont.woff └── style.styl ├── fancybox ├── blank.gif ├── fancybox_loading.gif ├── fancybox_loading@2x.gif ├── fancybox_overlay.png ├── fancybox_sprite.png ├── fancybox_sprite@2x.png ├── jquery.fancybox.css └── jquery.fancybox.pack.js └── js ├── gallery.js └── jquery.imagesloaded.min.js /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012 Tommy Chen 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 | # exLight 主题 2 | 3 | [Hexo](http://hexo.io) [Light](https://github.com/hexojs/hexo-theme-light) 主题中国大陆本地化分支 4 | 5 | ## 安装 6 | 7 | 在hexo根目录运行运行以下命令来安装exlight主题 8 | 9 | ``` 10 | git clone https://github.com/noahziheng/hexo-theme-exlight.git themes/exlight 11 | ``` 12 | 13 | ## 特征 14 | 15 | exLight主题相比light原主题有以下改动: 16 | * 移除自带的墙内无法使用的FacebookComment,加入多说评论支持,仍支持hexo自带的disqus配置 17 | * 加入新的个人介绍挂件(感谢[Icarus](http://blog.zhangruipeng.me/hexo-theme-icarus/)提供灵感),提供主要SNS链接 18 | * 加入友链挂件,只支持修改ejs添加友链的方式 19 | * 加入微博秀挂件 20 | * 替换搜索挂件为[TinySou](http://tinysou.com/)支持 21 | * 加入百度统计支持,保留Google Analytics支持 22 | * 加入JiaThis分享取代原生的墙内不可用分享组件 23 | * 加入InstantClick优化插件,提高加载速度 24 | 25 | 效果请参看我的博客[Noah's Blog](http://noahgao.net) 26 | 27 | ## 配置 28 | 29 | 默认配置: 30 | 31 | ``` yaml 32 | menu: 33 | Home: / 34 | Archives: /archives 35 | Projects: /projects 36 | About: /about 37 | 38 | widgets: 39 | - profile #个人介绍挂件 40 | - search #基于TinySou的小挂件,需配置下面的TinySou标志 41 | - recent_posts #最近文章挂件 42 | - category #分类挂件 43 | - tagcloud #标签云挂件 44 | - weibo #微博秀挂件,需配置底下的UID 45 | - links #友链挂件,添加友链需修改./layout/_widget/links.ejs 46 | #另有tag挂件可选 47 | 48 | excerpt_link: 阅读全文 49 | 50 | jiathis: 51 | enable: true #JiaThis分享开关 52 | 53 | fancybox: true #fancybox配置 54 | baidu_tongji: #百度统计 55 | google_analytics: #UA-XXXXXX-X 56 | rss: #可不填写 57 | duoshuo_shortname: noahgao #多说评论名称 58 | 59 | tinysou_id: #tinysou引擎ID 60 | 61 | weibo_uid: 2652975830 #微博秀UID 62 | SNS: #右侧个人介绍widget社交链接配置 63 | github: http://github.com/noahziheng 64 | twitter: https://twitter.com/noahziheng 65 | facebook: https://www.facebook.com/profile.php?id=100007443646852 66 | weibo: http://weibo.com/noah1719 67 | zhihu: http://www.zhihu.com/people/noah-gao 68 | profile: #右侧个人介绍widget配置 69 | name: #你的名字 70 | headimg: #你的头像地址 71 | description: #你的一句话简介 72 | location: #你的位置 73 | ``` 74 | --- 75 | **以下是light主题官方使用方式介绍,exLight全部支持** 76 | ## Features 77 | 78 | ### Gallery Post 79 | 80 |  81 | 82 | ``` 83 | --- 84 | layout: photo 85 | title: Gallery Post 86 | photos: 87 | - http://i.minus.com/ibobbTlfxZgITW.jpg 88 | - http://i.minus.com/iedpg90Y0exFS.jpg 89 | --- 90 | ``` 91 | 92 | ### Link Post 93 | 94 |  95 | 96 | ``` 97 | --- 98 | layout: link 99 | title: Link Post 100 | link: http://www.google.com/ 101 | --- 102 | ``` 103 | 104 | ### Tweet Widget 105 | 106 |  107 | 108 | ### Fancybox 109 | 110 |  111 | 112 | [Hexo]: http://zespia.tw/hexo/ 113 | [Fancybox]: http://fancyapps.com/fancybox/ -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | menu: 2 | Home: / 3 | Archives: /archives 4 | Projects: /projects 5 | About: /about 6 | 7 | widgets: 8 | - profile #个人介绍挂件 9 | - search #基于TinySou的小挂件,需配置下面的TinySou标志 10 | - recent_posts #最近文章挂件 11 | - category #分类挂件 12 | - tagcloud #标签云挂件 13 | #- weibo #微博秀挂件,需配置底下的UID 14 | - links #友链挂件,添加友链需修改./layout/_widget/links.ejs 15 | #另有tag挂件可选 16 | 17 | excerpt_link: 阅读全文 18 | 19 | jiathis: 20 | enable: false #JiaThis分享开关 21 | 22 | fancybox: true #fancybox配置 23 | #baidu_tongji: f4eb406be058265cf6064b36b379393d #百度统计 24 | google_analytics: #UA-XXXXXX-X 25 | rss: #可不填写 26 | duoshuo_shortname: noahgao #多说评论名称 27 | 28 | tinysou_id: ce95ee1b31097fdb02a4 29 | 30 | weibo_uid: 2652975830 #微博秀UID 31 | SNS: #右侧个人介绍widget社交链接配置 32 | github: http://github.com/noahziheng 33 | twitter: https://twitter.com/noahziheng 34 | facebook: https://www.facebook.com/profile.php?id=100007443646852 35 | weibo: http://weibo.com/noah1719 36 | zhihu: http://www.zhihu.com/people/noah-gao 37 | profile: #右侧个人介绍widget配置 38 | name: 'Noah Gao' #你的名字 39 | headimg: https://ooo.0o0.ooo/2016/12/13/5850153a10499.jpg #你的头像地址 40 | description: 'Full-stack & Embedded Developer' #你的一句话简介 41 | location: 'Tianjin,China' #你的位置 42 | -------------------------------------------------------------------------------- /languages/de.yml: -------------------------------------------------------------------------------- 1 | categories: Kategorien 2 | search: Suche 3 | tags: Tags 4 | tagcloud: Tag-Cloud 5 | tweets: Tweets 6 | prev: Vorherige Seite 7 | next: Nächste Seite 8 | comment: Kommentare 9 | archive_a: Archiv 10 | archive_b: "Archiv: %s" 11 | page: Seite %d 12 | recent_posts: Neueste Artikel -------------------------------------------------------------------------------- /languages/default.yml: -------------------------------------------------------------------------------- 1 | categories: Categories 2 | search: Search 3 | tags: Tags 4 | tagcloud: Tag Cloud 5 | tweets: Tweets 6 | prev: Prev 7 | next: Next 8 | comment: Comments 9 | archive_a: Archives 10 | archive_b: "Archives: %s" 11 | page: Page %d 12 | recent_posts: Recent Posts -------------------------------------------------------------------------------- /languages/es.yml: -------------------------------------------------------------------------------- 1 | categories: Categorías 2 | search: Buscar 3 | tags: Etiquetas 4 | tagcloud: Nube de Etiquetas 5 | tweets: Tweets 6 | prev: Anterior 7 | next: Siguiente 8 | comment: Comentarios 9 | archive_a: Archivo 10 | archive_b: "Archivo: %s" 11 | page: Página %d 12 | recent_posts: Entradas Recientes -------------------------------------------------------------------------------- /languages/ru.yml: -------------------------------------------------------------------------------- 1 | categories: Категории 2 | search: Поиск 3 | tags: Метки 4 | tagcloud: Облако меток 5 | tweets: Твиты 6 | prev: Назад 7 | next: Вперед 8 | comment: Комментарии 9 | archive_a: Архив 10 | archive_b: "Архив: %s" 11 | page: Страница %d 12 | -------------------------------------------------------------------------------- /languages/zh-CN.yml: -------------------------------------------------------------------------------- 1 | categories: 分类 2 | search: 搜索 3 | tags: 标签 4 | tagcloud: 标签云 5 | tweets: 推文 6 | prev: 上一页 7 | next: 下一页 8 | comment: 留言 9 | archive_a: 归档 10 | archive_b: 归档:%s 11 | page: 第 %d 页 12 | recent_posts: 最新文章 13 | -------------------------------------------------------------------------------- /languages/zh-TW.yml: -------------------------------------------------------------------------------- 1 | categories: 分類 2 | search: 搜尋 3 | tags: 標籤 4 | tagcloud: 標籤雲 5 | tweets: 推文 6 | prev: 上一頁 7 | next: 下一頁 8 | comment: 留言 9 | archive_a: 彙整 10 | archive_b: 彙整:%s 11 | page: 第 %d 頁 12 | recent_posts: 最新文章 -------------------------------------------------------------------------------- /layout/_partial/after_footer.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | <% if (config.disqus_shortname){ %> 6 | 17 | <% } %> 18 | 19 | <% if (theme.fancybox){ %> 20 | 21 | 22 | 27 | <% } %> 28 | 29 | -------------------------------------------------------------------------------- /layout/_partial/analytics.ejs: -------------------------------------------------------------------------------- 1 | <% if (theme.baidu_tongji){ %> 2 | 9 | <% } %> 10 | <% if (theme.google_analytics){ %> 11 | 21 | <% } %> 22 | -------------------------------------------------------------------------------- /layout/_partial/archive.ejs: -------------------------------------------------------------------------------- 1 | <% 2 | var title = ''; 3 | if (page.category) title = page.category; 4 | if (page.tag) title = page.tag; 5 | if (page.archive){ 6 | if (page.year) title = page.year + (page.month ? '/' + page.month : ''); 7 | else title = __('archive_a'); 8 | } 9 | %> 10 |
<%= config.beian %>
11 |The requested content cannot be loaded.
Please try again later.