├── .gitignore ├── LICENSE ├── README.CN.md ├── README.md ├── _config.yml ├── languages ├── en.yml └── zh-CN.yml ├── layout ├── archive.swig ├── category.swig ├── includes │ ├── baidu-tongji.swig │ ├── disqus.swig │ ├── duoshuo.swig │ ├── footer.swig │ ├── gallery.swig │ ├── gitalk.swig │ ├── google-analytics.swig │ ├── head.swig │ ├── jiathis.swig │ ├── layout.swig │ ├── pagination.swig │ ├── post-title-item.swig │ ├── recent-posts.swig │ ├── side-pagination.swig │ ├── social-icon.swig │ ├── toc.swig │ ├── user-card.swig │ ├── uyan.swig │ └── valine.swig ├── index.swig ├── math │ ├── index.swig │ ├── katex.swig │ └── mathjax.swig ├── page.swig ├── post.swig └── tag.swig └── source ├── css ├── blank.gif ├── fancybox_loading.gif ├── fancybox_loading@2x.gif ├── fancybox_overlay.png ├── fancybox_sprite.png ├── fancybox_sprite@2x.png ├── highlight-railscasts.css ├── iconfont │ ├── iconfont.css │ ├── iconfont.eot │ ├── iconfont.svg │ ├── iconfont.ttf │ └── iconfont.woff ├── jquery.fancybox-thumbs.css ├── jquery.fancybox.css ├── next.png ├── plyr.css ├── prev.png ├── random.styl ├── sprite.svg └── vegas.min.css ├── hollow.ico └── js ├── highlight.pack.js ├── jquery-3.6.4.min.js ├── jquery.fancybox-thumbs.js ├── jquery.fancybox.pack.js ├── jquery.mousewheel.pack.js ├── plyr.js ├── random.js └── vegas.min.js /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | 6 | # Runtime data 7 | pids 8 | *.pid 9 | *.seed 10 | 11 | # Directory for instrumented libs generated by jscoverage/JSCover 12 | lib-cov 13 | 14 | # Coverage directory used by tools like istanbul 15 | coverage 16 | 17 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 18 | .grunt 19 | 20 | # node-waf configuration 21 | .lock-wscript 22 | 23 | # Compiled binary addons (http://nodejs.org/api/addons.html) 24 | build/Release 25 | 26 | # Dependency directory 27 | node_modules 28 | 29 | # Optional npm cache directory 30 | .npm 31 | 32 | # Optional REPL history 33 | .node_repl_history 34 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Stiekel 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.CN.md: -------------------------------------------------------------------------------- 1 | # hexo-theme-random 中文文档 2 | 3 | ## Demo 4 | 5 | * [Demo on Openshift](http://random-stiekel.rhcloud.com/) 6 | * [不可能不确定](http://chensd.com) 7 | 8 | 如果你: 9 | 10 | * 喜欢用大图做背景 11 | * 不喜欢文章摘要 12 | * 不喜欢在文章列表中翻页 13 | 14 | 那这款主题很可能适合你。 15 | 16 | ## 屏幕截图 17 | 18 |  19 |  20 |  21 |  22 |  23 |  24 |  25 |  26 | 27 | ## 主题安装 28 | 29 | 在你的博客目录里,执行如下的命令: 30 | 31 | ```sh 32 | git clone https://github.com/stiekel/hexo-theme-random.git themes/random 33 | ``` 34 | 35 | 然后修改博客的主配置文件,将主题设置为 `random`: 36 | 37 | ```yml 38 | theme: random 39 | ``` 40 | 41 | ## 头像设置 42 | 43 | 可以在 Hexo 主配置文件,或者主题的配置文件 `theme/random/_config.yml` ,增加一个 `avatar` 配置,如下: 44 | 45 | ```yml 46 | avatar: http://7te9fe.com1.z0.glb.clouddn.com/default_avatar.jpg 47 | ``` 48 | 49 | ## 菜单与导航链接的设置 50 | 51 | 显示在首页和导航的链接,可以在主题的配置文件(`theme/random/_config.yml`)中自定义。如果想链接到标签和分类的列表页,还需要自己手动创建对应页面。 52 | 53 | ### 链接 54 | 55 | 在主题的配置文件中,可以设置首页和导航菜单中的链接,配置如下: 56 | 57 | ```yml 58 | menu: 59 | 首页: / 60 | 文章: /archives 61 | 标签: /tags 62 | 分类: /categories 63 | 关于: /about 64 | ``` 65 | 66 | 在首页中,会自动隐藏指向首页的链接。但是,标签和分类的列表页,需要我们手动创建。 67 | 68 | ### 创建分类列表页和标签列表页 69 | 70 | hexo 默认是没有分类和标签列表页的,本主题已经提供了对这两个页面的支持,但需要手动生成对应的页面。 71 | 72 | 要生成标签列表页,在博客主目录中执行如下命令: 73 | 74 | ```sh 75 | hexo new page tags 76 | ``` 77 | 78 | 这样,会生成一个 `source/tags/index.md` 文件,编辑文件,修改文件的 `type` 项为 `tags`,如下: 79 | 80 | ```yml 81 | title: 标签 82 | date: 2016-01-16 06:17:29 83 | type: "tags" 84 | comments: false 85 | ``` 86 | 87 | 同样,创建分类列表页: 88 | 89 | ```sh 90 | hexo new page categories 91 | ``` 92 | 93 | 编辑 `source/categories/index.md` 如下: 94 | 95 | ```yml 96 | title: 分类 97 | date: 2015-08-03 14:19:29 98 | type: "categories" 99 | comments: false 100 | ``` 101 | 102 | ## 社交网站链接配置 103 | 104 | 在主页和点击头像弹出的个人信息卡片中,显示有社交网站的链接,需要在主题的配置文件 `theme/random/_config.yml` 中添加对应的配置,如下: 105 | 106 | ```yml 107 | social: 108 | GitHub: https://github.com/stiekel 109 | Coding.NET: https://coding.net/u/Stiekel 110 | Twitter: https://twitter.com/SidCN 111 | Weibo: http://weibo.com/sidcn 112 | DouBan: http://www.douban.com/people/Stiekel/ 113 | ``` 114 | 115 | 在显示的时候,会自动根据社交网站的 url ,来显示对应的图标。除了上述几个,另外还支持 Facebook / Google Plus / Dribbble / LinkedIn / NPMjs / Youtube / 知乎 / Quora。 116 | 117 | 如果您喜欢的社交网站不在其中,欢迎提 [issue](https://github.com/stiekel/hexo-theme-random/issues)。 118 | 119 | ## 添加 RSS 图标 120 | 121 | 在上面的 `social` 配置项目中,添加一个索引名为 `RSS`,值为订阅地址的项目即可: 122 | 123 | ```yml 124 | social: 125 | rss: http://chensd.com/feed 126 | ``` 127 | 128 | ## 第三方服务的配置 129 | 130 | 本主题支持 [Google Analytics](https://www.google.com/analytics/) / [百度统计](http://tongji.baidu.com/web/welcome/login) / [Disqus](https://disqus.com/) / [友言](http://www.uyan.cc/) / [JiaThis](http://www.jiathis.com/) / [Valine](https://valine.js.org/en/index.html) / [gitalk](https://github.com/gitalk/gitalk),即可以在主题配置文件中设置,也可以在博客的主配置文件中设置,增加项目如下: 131 | 132 | ```yml 133 | # Google analytics 134 | google_analytics: 135 | # Baidu tongji 136 | baidu_analytics: 137 | # Disqus 138 | disqus_shortname: 139 | # Uyan 140 | uyan_id: 141 | # jiaThis 142 | jiaThis_uid: 143 | jiathisConfig: 144 | data_track_clickback: true 145 | summary: "" 146 | showClose: true 147 | shortUrl: false 148 | hideMore: false 149 | valine: 150 | enable: false # 设置为 true 即可开启 151 | appId: #your leancloud appId 152 | appKey: #your leancloud appKey 153 | guest_info: nick,mail,link #valine comment header info 154 | placeholder: # valine comment input placeholder(like: Please leave your footprints ) 155 | avatar: robohash # gravatar style https://valine.js.org/avatar 156 | pageSize: 10 # comment list page size 157 | verify: false # valine verify code (true/false) 158 | notify: true # valine mail notify (true/false) 159 | lang: en 160 | visit_analytics: true 161 | gitalk: 162 | enable: false 163 | clientID: clientID 164 | clientSecret: clientSecret 165 | repo: gitalk-comments 166 | owner: github-username 167 | ``` 168 | 169 | 对应各个服务的 key 或者 code,直接添加在冒号之后即可。 170 | 171 | ## 主题配置 172 | 173 | 主题安装后,不需要任何配置,也可以很好的显示。 174 | 175 | ### 首页中显示最新文章列表 176 | 177 | 首页默认是不显示最新文章链接的,如果需要显示,则需要在主题或站点配置文件中添加 `homepageArticleCount` 配置,为 `0` 时不显示最近文章列表,配置如下: 178 | 179 | ```yml 180 | # 显示最新的三篇文章 181 | homepageArticleCount: 3 182 | ``` 183 | 184 | ### 背景图来源的配置 185 | 186 | 对于轮播的背景图片,有两种来源,一是使用指定的图片,二是使用 [unsplash](https://source.unsplash.com/) 提供的随机图片。 187 | 188 | 如果使用 unsplash 的图片,则可以在主题的配置文件 `_config.yml` 中进行配置,参数的具体意见,请参见 [unsplash文档](https://unsplash.it/): 189 | 190 | ```yml 191 | unsplashConfig: 192 | # 关于这几个配置项的说明,请参见 https://unsplash.it/ 193 | # blur: true # 给图片增加模糊特效 194 | gravity: 'north' # north, east, south, west, center # 图片翻转 195 | # greyscale: true # 使用灰度图片 196 | ``` 197 | 198 | 当然,也可以自己配置背景图片,也是在主题配置文件中进行,如下: 199 | 200 | ```yml 201 | backgroundImages: 202 | - https://unsplash.it/__width__/__height__?random&t=6&gravity=center 203 | - https://unsplash.it/__width__/__height__?random&t=6&gravity=center 204 | - https://unsplash.it/__width__/__height__?random&t=6&gravity=center 205 | - https://unsplash.it/__width__/__height__?random&t=6&gravity=center 206 | - https://unsplash.it/__width__/__height__?random&t=6&gravity=center 207 | ``` 208 | 209 | URL 中的 `__width__` 和 `__height__` ,在请求时,会替换为浏览器的宽度和高度值,如果你的图片服务器支持按分辨率裁剪,那就可以用得上。 210 | 211 | ### 背景图轮播的配置 212 | 213 | 背景图轮播,使用的是 [vegas](http://vegas.jaysalvat.com) ,也是在主题的配置文件中进行自定义: 214 | 215 | ```yml 216 | vegasConfig: 217 | # animation: 'random' 218 | preloadImage: true # 图片预加载配置 219 | transition: # 图片的切换物资 220 | - slideLeft2 221 | - slideRight2 222 | # - zoomIn 223 | # - swirLeft 224 | # - swirRight 225 | # - flash 226 | - flash2 227 | # transition: 'swirlRight' # 可以只配置一个 228 | timer: true # 是否显示时间进度条 229 | delay: 5000 # 每张图片的显示时间 230 | shuffle: true # 按顺序播放,还是随机播放 231 | count: 10 #一共多少张图片 232 | ``` 233 | 234 | 具体参数的意义,请参见 [vegas 文档](http://vegas.jaysalvat.com/documentation/settings/)。 235 | 236 | ### 关闭背景图轮播 237 | 238 | 如果你不喜欢背景图和轮播,是可以关闭的,在主配置文件或者主题配置文件中添加如下的值: 239 | 240 | ```yml 241 | turnoffBackgroundImage: 242 | # home page 243 | index: false 244 | # arcihve / categories / tags 245 | post_list: false 246 | # post and page 247 | post: true 248 | ``` 249 | 250 | 关闭背景图后,可以通过下面的变量来设置背景色,注意,不要包括 # : 251 | 252 | ```yml 253 | backgroundColor: D7CCC8 254 | ``` 255 | 256 | 257 | ### Hide 按钮 258 | 259 | 在每个页面的左下角,都有一个 __Hide__ 按钮,点击这个按钮之后,按钮之外的东西都会被隐藏。如果不想显示这个按钮,可以在主题或者 Hexo 的主配置文件中修改 `hideButtonVisibility`,设置为 `false`: 260 | 261 | ```yml 262 | hideButtonVisibility: false 263 | ``` 264 | 265 | ### 忽略特定服务器的访问统计 266 | 267 | 当你在调试和写作的时候,可以不将这些访问发送到 Google Analytics 或百度统计,只需要将你的调试服务器地址加入到下面的配置变量即可: 268 | 269 | ```yml 270 | isIgnoreSpecialHostVisitor: true 271 | ignoreHostList: 272 | - localhost 273 | - 127.0.0.1 274 | ``` 275 | 276 | ## 感谢 277 | 278 | * 背景轮插插件: [vegas](http://vegas.jaysalvat.com/) 279 | * 社交网站链接图标: [iconfont](http://iconfont.cn/) 280 | * Hexo 主题生成器: [generator-hexo-theme](https://github.com/tcrowe/generator-hexo-theme) 281 | * 视频播放: [plyr](https://plyr.io/) 282 | 283 | ## 反馈 284 | 285 | 欢迎使用,如果有问题,请您在 [issue](https://github.com/stiekel/hexo-theme-random/issues) 中提出来。 286 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # hexo-theme-random 2 | A hexo theme with random fullscreen background image. 3 | 4 | ## Demo 5 | 6 | * [Demo](https://env-wwufiyop-1252212664.tcloudbaseapp.com/random-demo/?latest) 7 | 8 | ## [中文文档](README.CN.md) 9 | 10 | If you 11 | 12 | * prefer to use fullscreen picture as background image 13 | * do NOT like show article abstract in post list 14 | * do NOT like use paginations in post list 15 | 16 | This theme seems to suit you. 17 | 18 | ## Screenshot 19 | 20 |  21 |  22 |  23 |  24 |  25 |  26 |  27 |  28 | 29 | ## Install 30 | 31 | execute this command in blog root path: 32 | 33 | ```sh 34 | git clone https://github.com/stiekel/hexo-theme-random.git themes/random 35 | ``` 36 | 37 | modify the `theme` setting in hexo main config file `_config.yml` as following: 38 | 39 | ```yml 40 | theme: random 41 | ``` 42 | 43 | ## Avatar 44 | 45 | You can config the avatar in hexo main config file or theme config file as following: 46 | 47 | ```yml 48 | avatar: http://7te9fe.com1.z0.glb.clouddn.com/default_avatar.jpg 49 | ``` 50 | 51 | ## Nav links config 52 | 53 | Nav links in homepage and the top of other pages, you can config it in theme config file `theme/random/_config.yml`: 54 | 55 | ```yml 56 | menu: 57 | Home: / 58 | Archives: /archives 59 | Tags: /tags 60 | Categories: /categories 61 | About: /about 62 | ``` 63 | 64 | In index page, the `Home` link will hide itself. 65 | 66 | ## Create tags list page and categories list page 67 | 68 | Hexo do NOT create tags list page and categories list page in default, but Random theme provide those pages, you just need to create it. 69 | 70 | If you want to create tags list page, run this command in blog root path: 71 | 72 | ```sh 73 | hexo new page tags 74 | ``` 75 | 76 | this will create a folder and a markdown file `source/tags/index.md`, change the `type` value of thie file as following: 77 | 78 | ```yml 79 | title: Tags 80 | date: 2016-01-16 06:17:29 81 | type: "tags" 82 | comments: false 83 | ``` 84 | 85 | the same to create categories list page: 86 | 87 | ```sh 88 | hexo new page categories 89 | ``` 90 | 91 | and modify the `source/categories/index.md` as following: 92 | 93 | ```md 94 | title: Categories 95 | date: 2015-08-03 14:19:29 96 | type: "categories" 97 | comments: false 98 | ``` 99 | 100 | ## Social links config 101 | 102 | In the homepage, and the user card when visitors click the avatar, there are some social site icon links, You can config the icons in theme config file `theme/random/_config.yml` as following: 103 | 104 | ```yml 105 | social: 106 | GitHub: https://github.com/stiekel 107 | Coding.NET: https://coding.net/u/Stiekel 108 | Twitter: https://twitter.com/SidCN 109 | Weibo: http://weibo.com/sidcn 110 | DouBan: http://www.douban.com/people/Stiekel/ 111 | ``` 112 | 113 | It will replace text into icon automaticalcally, Random theme support to show icon of Facebook / Google Plus / Dribbble / LinkedIn / NPMjs / Youtube / Zhihu / Quora. 114 | 115 | If you need more, please create [issue](https://github.com/stiekel/hexo-theme-random/issues). 116 | 117 | ## Add RSS Icon 118 | 119 | If you want add RSS icon to social links, please add the following code at the `social` section in config file: 120 | 121 | ```yml 122 | social: 123 | rss: http://chensd.com/feed 124 | ``` 125 | 126 | ## Third party Service 127 | 128 | Random support [Google Analytics](https://www.google.com/analytics/) / [Baidu Tongji](http://tongji.baidu.com/web/welcome/login) / [Disqus](https://disqus.com/) / [Uyan](http://www.uyan.cc/) / [JiaThis](http://www.jiathis.com/) / [Valine](https://valine.js.org/en/index.html) / [gitalk](https://github.com/gitalk/gitalk), You can config these in theme config file or hexo main config file: 129 | 130 | ```yml 131 | # Google analytics 132 | google_analytics: 133 | # Baidu tongji 134 | baidu_analytics: 135 | # Disqus 136 | disqus_shortname: 137 | # Uyan 138 | uyan_id: 139 | # jiaThis 140 | jiaThis_uid: 141 | jiathisConfig: 142 | data_track_clickback: true 143 | summary: "" 144 | showClose: true 145 | shortUrl: false 146 | hideMore: false 147 | valine: 148 | enable: false # set true if you want to use 149 | appId: #your leancloud appId 150 | appKey: #your leancloud appKey 151 | guest_info: nick,mail,link #valine comment header info 152 | placeholder: # valine comment input placeholder(like: Please leave your footprints ) 153 | avatar: robohash # gravatar style https://valine.js.org/avatar 154 | pageSize: 10 # comment list page size 155 | verify: false # valine verify code (true/false) 156 | notify: true # valine mail notify (true/false) 157 | lang: en 158 | visit_analytics: true 159 | 160 | gitalk: 161 | enable: false 162 | clientID: clientID 163 | clientSecret: clientSecret 164 | repo: gitalk-comments 165 | owner: github-username 166 | ``` 167 | 168 | Just add the key or code after the ':'. 169 | 170 | ## Theme config 171 | 172 | The following settings is not prerequisite. 173 | 174 | ### Show latest articles in homepage 175 | 176 | Homepage did NOT show latest article links by default, if you want show latest articles in homepage, you need to add `homepageArticleCount` in theme or site config, `0` to hide latest article links. 177 | 178 | ```yml 179 | # show latest 3 articles in homepage 180 | homepageArticleCount: 3 181 | ``` 182 | 183 | ### Background image source config 184 | 185 | The background image use [unsplash](https://source.unsplash.com/) as default, but you can use your custom pictures. 186 | 187 | If you use unsplash images, you can config the settings in theme config file `theme/random/_config.yml`: 188 | 189 | ```yml 190 | unsplashConfig: 191 | # more about config on https://unsplash.it/ 192 | # blur: true 193 | gravity: 'north' # north, east, south, west, center 194 | # greyscale: true 195 | ``` 196 | 197 | if you want use your own pictures, change the following section: 198 | 199 | ```yml 200 | backgroundImages: 201 | - https://unsplash.it/__width__/__height__?random&t=6&gravity=center 202 | - https://unsplash.it/__width__/__height__?random&t=6&gravity=center 203 | - https://unsplash.it/__width__/__height__?random&t=6&gravity=center 204 | - https://unsplash.it/__width__/__height__?random&t=6&gravity=center 205 | - https://unsplash.it/__width__/__height__?random&t=6&gravity=center 206 | ``` 207 | 208 | `__width__` and `__height__` in URLs will replace with browser window size when show the picture, It's very useful when you image server support cut image into appointed size. 209 | 210 | ### Vegas(background image player) config 211 | 212 | Random theme use [Vegas](http://vegas.jaysalvat.com/) to organize pictures, you can config it in following section of theme config file: 213 | 214 | ```yml 215 | vegasConfig: 216 | # more about config http://vegas.jaysalvat.com/documentation/settings/ 217 | # animation: 'random' 218 | # transition: 'swirlRight' 219 | preloadImage: true 220 | transition: 221 | - slideLeft2 222 | - slideRight2 223 | # - zoomIn 224 | # - swirLeft 225 | # - swirRight 226 | # - flash 227 | - flash2 228 | timer: true 229 | delay: 5000 230 | shuffle: true 231 | count: 28 232 | ``` 233 | 234 | ### Do NOT use background images 235 | 236 | If you do NOT like the background iamges, you can turn it off, please add this option in you site config or theme config file: 237 | 238 | ```yml 239 | turnoffBackgroundImage: 240 | # home page 241 | index: false 242 | # arcihve / categories / tags 243 | post_list: false 244 | # post and page 245 | post: true 246 | ``` 247 | 248 | and you can set the background color with: 249 | 250 | ```yml 251 | backgroundColor: D7CCC8 252 | ``` 253 | 254 | ### Hide button 255 | 256 | There is a __Hide__ button on the left bottom of every page, all of the content except button itself will be hide while user click this button. If you want to hide this button, please change `hideButtonVisibility` to `false` in theme config or main config file: 257 | 258 | ```yml 259 | hideButtonVisibility: false 260 | ``` 261 | 262 | ### Ignore visitor statistics on special server 263 | 264 | When you are debugging or writting, you may do NOT like to send the visitor statistics to Google Analytics or Baidu Tongji, Just add the debugging server address to the following variables: 265 | 266 | ```yml 267 | isIgnoreSpecialHostVisitor: true 268 | ignoreHostList: 269 | - localhost 270 | - 127.0.0.1 271 | ``` 272 | 273 | ## Thanks 274 | 275 | * [Vegas](http://vegas.jaysalvat.com) 276 | * [iconfont](http://iconfont.cn/) 277 | * [generator-hexo-theme](https://github.com/tcrowe/generator-hexo-theme) 278 | * [plyr](https://plyr.io/) 279 | 280 | ## Feedback 281 | 282 | [issue](https://github.com/stiekel/hexo-theme-random/issues). 283 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | 2 | # html lang 3 | language: zh-CN 4 | 5 | # main menu navigation 6 | menu: 7 | Home: index.html 8 | Archives: archives 9 | Tags: tags 10 | Categories: categories 11 | About: about 12 | Github: https://github.com/stiekel 13 | 14 | social: 15 | GitHub: https://github.com/stiekel 16 | Weibo: http://weibo.com/sidcn 17 | M: histkc@gmail.com 18 | 19 | # homepage article list size, 0 to hide list in homepage 20 | homepageArticleCount: 3 21 | 22 | # Google analytics 23 | google_analytics: false 24 | # Baidu tongji 25 | baidu_analytics: false 26 | # Disqus 27 | disqus_shortname: 28 | # Uyan 29 | uyan_id: 30 | # jiaThis id 31 | # if you want to change the style of jiaThis, please go to chage the following file: 32 | # theme/random/layouts/includes/jiathis.swig 33 | jiaThis_uid: 34 | jiathisConfig: 35 | data_track_clickback: true 36 | summary: "" 37 | showClose: true 38 | shortUrl: false 39 | hideMore: false 40 | 41 | # Valine comments https://valine.js.org 42 | valine: 43 | enable: false # set true if you want to use 44 | appId: #your leancloud appId 45 | appKey: #your leancloud appKey 46 | guest_info: nick,mail,link #valine comment header info 47 | placeholder: # valine comment input placeholder(like: Please leave your footprints ) 48 | avatar: robohash # gravatar style https://valine.js.org/avatar 49 | pageSize: 10 # comment list page size 50 | verify: false # valine verify code (true/false) 51 | notify: true # valine mail notify (true/false) 52 | lang: en 53 | visit_analytics: true 54 | 55 | # gitalk comments https://github.com/gitalk/gitalk 56 | gitalk: 57 | enable: false 58 | clientID: clientID 59 | clientSecret: clientSecret 60 | repo: gitalk-comments 61 | owner: github-username 62 | 63 | # Miscelaneous 64 | favicon: /hollow.ico 65 | 66 | # stylesheets loaded in the
67 | stylesheets: 68 | - /css/random.css 69 | - /css/vegas.min.css 70 | - /css/highlight-railscasts.css 71 | - /css/jquery.fancybox.css 72 | - /css/iconfont/iconfont.css 73 | - /css/jquery.fancybox-thumbs.css 74 | - /css/plyr.css 75 | 76 | # scripts loaded in the end of the body 77 | scripts: 78 | - /js/jquery-3.6.4.min.js 79 | - /js/vegas.min.js 80 | - /js/random.js 81 | - /js/highlight.pack.js 82 | - /js/jquery.mousewheel.pack.js 83 | - /js/jquery.fancybox.pack.js 84 | - /js/jquery.fancybox-thumbs.js 85 | - /js/plyr.js 86 | 87 | # ignore visitor statistics on special server, for example on you local computer or debugging server 88 | isIgnoreSpecialHostVisitor: true 89 | ignoreHostList: 90 | - localhost 91 | - 127.0.0.1 92 | 93 | # if you want to turn off the background images, pleaase set this value as true 94 | turnoffBackgroundImage: 95 | # home page 96 | index: false 97 | # arcihve / categories / tags 98 | post_list: false 99 | # post and page 100 | post: false 101 | # when you turn off backgrounds, you can set a background color. 102 | backgroundColor: 34495E 103 | 104 | backgroundImages: 105 | - https://unsplash.it/__width__/__height__?random&t=6&gravity=center 106 | - https://unsplash.it/__width__/__height__?random&t=6&gravity=center 107 | - https://unsplash.it/__width__/__height__?random&t=6&gravity=center 108 | - https://unsplash.it/__width__/__height__?random&t=6&gravity=center 109 | - https://unsplash.it/__width__/__height__?random&t=6&gravity=center 110 | vegasConfig: 111 | # more about config http://vegas.jaysalvat.com/documentation/settings/ 112 | # animation: 'random' 113 | # transition: 'swirlRight' 114 | preloadImage: true 115 | transition: 116 | - slideLeft2 117 | - slideRight2 118 | - swirLeft 119 | - swirRight 120 | - flash 121 | animationDuration: 100 122 | timer: false 123 | delay: 10000 124 | shuffle: true 125 | count: 12 126 | 127 | unsplashConfig: 128 | # more about config on https://unsplash.it/ 129 | # blur: true 130 | gravity: 'center' # north, east, south, west, center 131 | # greyscale: true 132 | 133 | avatar: images/blog-avatar.png 134 | 135 | # do not like fancybox, set this as false, this will turn it off 136 | fancybox: true 137 | 138 | # set the visibility of hide button in left bottom. 139 | hideButtonVisibility: true 140 | -------------------------------------------------------------------------------- /languages/en.yml: -------------------------------------------------------------------------------- 1 | archive_title: Archives 2 | category_title: Category 3 | tag_title: Tag 4 | rss_title: RSS 5 | excerpt_title: Read More 6 | without_title: No Title 7 | 8 | total_title: Total 9 | post_title: post 10 | posts_title: posts 11 | not_post: Wrote nothing 12 | 13 | comment: Comments 14 | 15 | prev: Prev 16 | next: Next 17 | 18 | prev_post: Prev post 19 | next_post: Next post 20 | 21 | page_number_part1: Page 22 | page_number_part2: of 23 | page_number_part3: . 24 | 25 | created_at: Created at 26 | updated_at: Updated at 27 | 28 | toc: Table of Content 29 | hide_toc: Hide TOC 30 | show_toc: Show TOC 31 | 32 | show_all: Show All 33 | -------------------------------------------------------------------------------- /languages/zh-CN.yml: -------------------------------------------------------------------------------- 1 | archive_title: 归档 2 | category_title: 分类 3 | tag_title: 标签 4 | rss_title: RSS 5 | excerpt_title: 阅读全文 6 | without_title: 空标题 7 | 8 | total_title: 共 9 | post_title: 文章 10 | posts_title: 文章 11 | not_post: 没有写文章哟 12 | 13 | comment: 评论 14 | 15 | prev: 上一页 16 | next: 下一页 17 | 18 | prev_post: 上一篇 19 | next_post: 下一篇 20 | 21 | page_number_part1: 第 22 | page_number_part2: 页,共 23 | page_number_part3: 页 24 | 25 | created_at: 撰写于 26 | updated_at: 修改于 27 | 28 | toc: 目录 29 | hide_toc: 隐藏目录 30 | show_toc: 显示目录 31 | 32 | show_all: 查看全部 33 | -------------------------------------------------------------------------------- /layout/archive.swig: -------------------------------------------------------------------------------- 1 | {% extends 'includes/layout.swig' %} 2 | 3 | {% block body %} 4 |