Skip to content

Commit

Permalink
fixed column style in mobile size
Browse files Browse the repository at this point in the history
  • Loading branch information
codefine committed Nov 9, 2017
0 parents commit 29c54b8
Show file tree
Hide file tree
Showing 104 changed files with 10,300 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
@@ -0,0 +1,11 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

[*.{yml,json}]
indent_size = 2
24 changes: 24 additions & 0 deletions LICENSE
@@ -0,0 +1,24 @@
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

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 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.

For more information, please refer to <http://unlicense.org>
29 changes: 29 additions & 0 deletions README.md
@@ -0,0 +1,29 @@
hexo-theme-material-indigo
================

[![Join the chat at https://gitter.im/hexo-theme-indigo/Lobby](https://badges.gitter.im/hexo-theme-indigo/Lobby.svg)](https://gitter.im/hexo-theme-indigo/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Material Design 风格的Hexo主题,基于 Hexo 3.0+ 制作。 [Preview](http://imys.net/)

> 现有两个主题分支,我的博客中使用的是 card 分支卡片风格主题,master 分支是旧版平铺式风格主题。
## Feature

1. 仅支持 IE10+ 等现代浏览器。
2. 去 jQuery,更轻。相信现代浏览器的原生兼容性。
3. 使用 Less 作为 css 预处理器,需要安装 `hexo-renderer-less`
4. 添加了英文字体支持 Roboto。
5. 添加了一些波纹效果。By [Waves](https://github.com/fians/Waves)
6. 无前端依赖的分享实现。
7. 基于静态数据的站内搜索,无第三方侵入。
8. 支持文章打赏。

## Useage

[文档 | Document](https://github.com/yscoder/hexo-theme-indigo/wiki)

## ChangeLog

升级前请仔细查看更改内容,如非必要可不升级。

[ChangeLog](https://github.com/yscoder/hexo-theme-indigo/releases)
239 changes: 239 additions & 0 deletions _config.yml
@@ -0,0 +1,239 @@
# hexo-theme-mellow
# https://github.com/yscoder/hexo-theme-indigo
# 为了避免未知解析错误,配置中的缩紧为2个半角空格,冒号后跟1个半角空格
# 不需要的配置可以注释掉,也可以修改对应键布尔值(enable和disable)


#####################
#### 全局配置 ###
#####################

# 是否启用less压缩
## 建议压缩,并且不要修改默认paths
less:
compress: true #是否压缩
paths:
- source/css/style.less #压缩后的文件路径

# 站点ico图标
favicon: /img/favicon.ico

# 动态定义title
#title_change:
#normal: (つェ⊂)咦!又好了! #页面获得焦点时显示(短暂存在)
#leave: 死鬼去哪里了! #页面失去焦点后显示

# 规范网址
## 让搜索引擎重定向你的不同域名、不同子域、同域不同目录的站点到你期望的路径
## https://support.google.com/webmasters/answer/139066
## 假设配置为 canonical: http://www.lujingtao.com,那么从搜索引擎中 www.lujingtao.com 进入会重定向到 lujingtao.com
canonical: false

##############################################################################################################################

#####################
#### 菜单配置 ###
#####################

# 头像
avatar: /img/avatar.jpg

# 头像点击后的链接地址
avatar_link: / #默认为主页

# 头像区域背景图
brand: /

# 电子邮件
email: 277133779@qq.com

# 电子邮件下方的链接图标
## 新连接规则[name]: url | icon
## 使用fontawesome图标,只需要写图标名。github -> icon-github | fa-github
## http://http://fontawesome.dashgame.com/
menu_link:
github: https://github.com/codefine | github

# 添加新菜单项遵循以下规则
## menu:
## link: [必要][不渲染] 用于区分类别
## icon: _blank [必要][渲染] 菜单图标。使用内置fontawesome图标,省略前缀
## text: About [必要][渲染] 菜单文字信息
## url: /about [必要][渲染] 菜单链接,绝对或相对路径。
## target: _blank [必要][不渲染] 是否跳出,省略则在当前页面打开
menu:
home:
text: HOME
url: /
icon: home
th-list:
text: CATEGORIES
url: /categories
icon: th-list
tags:
text: TAGS
url: /tags
icon: tags
archives:
text: ARCHIVES
url: /archives
icon: archives
#about:
#text: ABOUT
#url: /about
#icon: user
demo:
text: CUSTOM
url: /custom
icon: plus-square
#github:
#url: https://github.com/codefine
#target: _blank
#icon: github
#weibo:
#url: http://www.weibo.com/codefine
#target: _blank

##############################################################################################################################

#####################
#### 首页配置 ###
#####################

# 首页是否开启置顶标志
top_icon: true

# 首页中文章缩略图是否使用相对路径
## 只有disable为true的时候,下面的路径url才会生效,路径地址位于: 全局/source/uploads
## uploads可以是任意存在文件夹名(不存在可以自己闯将),用于放置各种需要引入到页面的静态文件,如img等。
## 参考https://hexo.io/zh-cn/docs/asset-folders.html#文章资源文件夹


##############################################################################################################################

#####################
#### 文章配置 ###
#####################

# 页面标题
## 标签页 / 分类页 / 归档页的标题只能在这里设置
## 其他自定义页面标题在页面markdown文件的title中设置
tags_title: Tags #标签页
categories_title: Categories #分类页
archives_title: Archives #归档页

# 自动生成文章摘要
## 显示在主页中
## excerpt_length只在excerpt_render为true时生效。
## excerpt_render为false时可进行手动截断。方法为在文章的markdown文件中加入<!--more-->,其之前的内容视为摘要部分。
excerpt_render: false #自动截断
excerpt_length: 200 #截断长度
excerpt_link: more... #按钮内容

# 是否显示文章最后更新时间
## 位于文章底部的copyright
show_last_updated: true

# 版权信息copyright
## 位于文章底部
## hexo中所有变量及辅助函数等均可调用,具体请查阅 hexo.io
postMessage: 转载注明出处,原文地址:<a href="<%- url_for(page.path).replace(/index\.html$/, "") %>" target="_blank" rel="external"><%- page.permalink.replace(/index\.html$/, "") %></a>

# 打赏
## 可以在文章markdown中设置reward: false来取消本篇文章的打赏功能
## 全局取消直接注释下方配置
reward:
title: 我们一起来让这个世界有趣一点
wechat: /img/reward-wechat.jpg #微信
alipay: /img/reward-alipay.jpg #支付宝

# 分享
## 内置6种分享途径,不需要的设置对应的为false
## 可以在文章markdown中设置share: false来取消本篇文章的打赏功能
## 全局取消直接注释下方配置
share_items:
weibo: true
wechat: true
qq: true
facebook: false
twitter: false
google: false

# 目录
## 捕捉文章markdown的#一级标题 / ##二级标题 / ###三级标题等
## 位于文章右侧,移动端或者小屏幕自动隐藏
toc:
enable: true
list_number: true # 是否显示数字排序

##############################################################################################################################

#####################
#### 页脚配置 ###
#####################

# 友情链接
blogroll:
item1:
name: github
url: https://www.github.com
item2:
name: gitee
url: https://www.gitee.com
item3:
name: coding
url: https://www.coding.net

# 版权起始年份
since_year: 2017

# icp备案号
## 例如ICP_license: 京ICP备123456号
ICP_license: false

# 驱动引擎/主题等信息
power: true

# 搭载服务器信息
## 如果使用github或者gitee等pages功能,可以设置为false
## 如果使用coding.net的pages作为host,该选项将帮助您清楚默认广告页面
## 详情见https://coding.net/help/doc/pages/guide-page.html
hosted: true

##############################################################################################################################

#####################
#### 第三方配置 ###
#####################

# 搜索
local_search: true

# 百度统计
baidu_tongji: c5cdc16e3394425180e7b88162fa8834 #appid

# valine评论系统
## https://valine.js.org/
valine:
enable: true
appid: erEgbvcciIYD87tp13Iun3sj-gzGzoHsz
appkey: jEabNeSP5PE1C1RDUdJxml93
notify: false #是否开启邮箱提醒
verify: false #是否开启验证码
placeholder: give me some sugers plz... #留言板中的预留信息
avatar: 'wavatar' #用户头像

# 文章浏览统计
leancloud_visitors:
enable: true
app_id: erEgbvcciIYD87tp13Iun3sj-gzGzoHsz
app_key: jEabNeSP5PE1C1RDUdJxml93
icon: true #true只显示图标,false只显示文字

# 数学公式
mathjax:
enable: true
cdn: //cdn.bootcss.com/mathjax/2.7.1/latest.js?config=TeX-AMS-MML_HTMLorMML

# 是否使用按钮waves插件
waves: true
13 changes: 13 additions & 0 deletions languages/en.yml
@@ -0,0 +1,13 @@
global:
search_input_hint: "Search"

post:
continue_reading: "Continue reading..."
last_updated: "Last updated: "

footer:
license: 'This blog is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.'

tag:
all: "All"
tags: "Tags"
13 changes: 13 additions & 0 deletions languages/zh-CN.yml
@@ -0,0 +1,13 @@
global:
search_input_hint: "输入感兴趣的关键字"

post:
continue_reading: "阅读全文…"
last_updated: "最后更新时间:"

footer:
license: '博客内容遵循 <a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh">知识共享 署名 - 非商业性 - 相同方式共享 4.0 国际协议</a>'

tag:
all: "全部"
tags: "标签"
13 changes: 13 additions & 0 deletions languages/zh-TW.yml
@@ -0,0 +1,13 @@
global:
search_input_hint: "搜尋"

post:
continue_reading: "閱讀全文…"
last_updated: "最後更新時間:"

footer:
license: '本部落格係採用<a rel="license" href="https://creativecommons.org/licenses/by/4.0/deed.zh_TW">創用 CC 姓名標示 4.0 國際 授權條款授權</a>'

tag:
all: "全部"
tags: "標籤"
Empty file added layout/_custom/body.ejs
Empty file.
Empty file added layout/_custom/head.ejs
Empty file.
Empty file added layout/_custom/script.ejs
Empty file.
8 changes: 8 additions & 0 deletions layout/_partial/_plugins/blogroll.ejs
@@ -0,0 +1,8 @@
<p>
<span>Links:</span>
<% for (var i in theme.blogroll) { var rollItem = theme.blogroll[i] %>
<span class="blogroll-item">
<a href="<%- rollItem.url %>" target="_blank"><%- rollItem.name %></a>
</span>
<% } %>
</p>
8 changes: 8 additions & 0 deletions layout/_partial/_plugins/site-visitor.ejs
@@ -0,0 +1,8 @@
<p>
<span id="busuanzi_container_site_uv" style='display:none'>
<%- theme.visit_counter.site_uv %><span id="busuanzi_value_site_uv"></span>
</span>
<span id="busuanzi_container_site_pv" style='display:none'>
<%- theme.visit_counter.site_pv %><span id="busuanzi_value_site_pv"></span>
</span>
</p>
1 change: 1 addition & 0 deletions layout/_partial/_plugins/valine.ejs
@@ -0,0 +1 @@
<div id="comment"></div>
9 changes: 9 additions & 0 deletions layout/_partial/_third-party/baidu_tongji.ejs
@@ -0,0 +1,9 @@
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?<%= theme.baidu_tongji %>";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
16 changes: 16 additions & 0 deletions layout/_partial/_third-party/dynamic_title.ejs
@@ -0,0 +1,16 @@
<script>
(function() {
var OriginTitile = document.title, titleTime;
document.addEventListener('visibilitychange', function() {
if (document.hidden) {
document.title = '<%- theme.title_change.leave %>';
clearTimeout(titleTime);
} else {
document.title = '<%- theme.title_change.normal %>';
titleTime = setTimeout(function() {
document.title = OriginTitile;
},2000);
}
});
})();
</script>

0 comments on commit 29c54b8

Please sign in to comment.