Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 23 additions & 26 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,21 @@ menu:
text: 主页
url: /
archives:
url: /archives
url: /archives/
tags:
url: /tags
url: /tags/
th-list:
text: Categories
url: /categories
url: /categories/
address-card:
text: About Me
url: /about/
github:
url: https://github.com/yscoder
url: https://github.com/rebill
target: _blank
weibo:
url: http://www.weibo.com/ysweb
target: _blank
link:
text: 测试
url: /custom

# 你的头像url
avatar: /img/avatar.jpg
avatar: /img/avatar.jpeg
# avatar link
avatar_link: /
# 头像背景图
Expand All @@ -38,7 +35,7 @@ brand: /img/brand.jpg
favicon: /favicon.ico

# email
email: 634206017@qq.com
email: rebill#qq.com

# 设置 Android L Chrome 浏览器状态栏颜色
color: '#3F51B5'
Expand All @@ -63,7 +60,7 @@ share: true

# 是否开启打赏,关闭 reward: false
reward:
title: 谢谢大爷~
title: 如果觉得文章对您有用,请打赏二两银子~
wechat: /img/wechat.jpg #微信,关闭设为 false
alipay: /img/alipay.jpg #支付宝,关闭设为 false

Expand All @@ -79,7 +76,7 @@ toc:
list_number: true # 是否显示数字排序

# 文章页留言内容,hexo中所有变量及辅助函数等均可调用,具体请查阅 hexo.io
postMessage: 这里可以写作者留言,标签和 hexo 中所有变量及辅助函数等均可调用,示例:<a href="<%- url_for(page.path).replace(/index\.html$/, '') %>" target="_blank" rel="external"><%- page.permalink.replace(/index\.html$/, '') %></a>
postMessage: 原始链接:<a href="<%- url_for(page.path).replace(/index\.html$/, '') %>" target="_blank" rel="external"><%- page.permalink.replace(/index\.html$/, '') %></a>

# 站长统计,如要开启,输入CNZZ站点id,如 cnzz: 1255152447
cnzz: false
Expand Down Expand Up @@ -109,12 +106,12 @@ disqus_shortname: false
# 是否开启友言评论, 填写友言用户id
uyan_uid: false
# 是否使用 gitment,https://github.com/imsun/gitment
gitment: false
# gitment:
# owner:
# repo:
# client_id:
# client_secret:
# gitment: false
gitment:
owner: rebill
repo: rebill.github.com
client_id: c36ea7b3876663d5fe00
client_secret: 6410167bbc446b05c6a7e1a7c9482cc87791e2f0

# Valine Comment system. https://valine.js.org
valine:
Expand All @@ -140,24 +137,24 @@ hyper_id: false
canonical: false

# 版权起始年份
since_year: 2015
since_year: 2018

# 用户页面中作者相关的描述性文字,如不需要设为 false
about: 用户页面中作者相关的描述性文字,如不需要设为 false
about: false

# “不蒜子”访问量统计,详见 http://ibruce.info/2015/04/04/busuanzi/
visit_counter:
site_uv: 站点总访客数:
site_pv: 站点总访问量:

# 动态定义title
title_change:
normal: (つェ⊂)咦!又好了!
leave: 死鬼去哪里了!
title_change: false
# normal: (つェ⊂)咦!又好了!
# leave: 死鬼去哪里了!

# 设置为 true 发布后将使用 unpkg cdn 最新的主题样式
# 如果想让你的自定义样式生效,把此项设为 false
cdn: true
cdn: false

# 设置为 true 将使用 lightbox render 图片
lightbox: true
Expand Down
2 changes: 1 addition & 1 deletion layout/_partial/head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
title = (theme.tags_title || 'Tags') + ': ' + page.tag;
}
%>
<title><% if (title){ %><%= title %> | <% } %><%= config.title %><% if (config.subtitle){ %> | <%= config.subtitle %><% } %></title>
<title><% if (title) { %><%= title %><% } else { %><%= config.title %><% if (config.subtitle){ %> | <%= config.subtitle %><% } %><% } %></title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<% if(theme.color){ %>
<meta name="theme-color" content="<%=theme.color%>">
Expand Down
3 changes: 2 additions & 1 deletion layout/_partial/plugins/gitment.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
<section class="comments" id="comments">
<div id="gitment_thread"></div>
<link rel="stylesheet" href="//unpkg.com/gitment/style/default.css">
<script src="//unpkg.com/gitment/dist/gitment.browser.js"></script>
<script src="//www.wenjunjiang.win/js/gitment.js"></script>
<script>
var gitment = new Gitment({
id: '<%= page.title %>',
owner: '<%- theme.gitment.owner %>',
repo: '<%- theme.gitment.repo %>',
oauth: {
Expand Down
4 changes: 2 additions & 2 deletions layout/_partial/post.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</div>

<%- partial('post/copyright') %>
<%- partial('post/reward-btn') %>
<%- partial('post/reward') %>

<div class="post-footer">
<%- partial('post/tag') %>
Expand All @@ -28,4 +28,4 @@

<%- partial('post/comment') %>
</article>
<%- partial('post/reward') %>

52 changes: 27 additions & 25 deletions layout/_partial/post/reward.ejs
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
<% if(page.reward){ %>
<div id="reward" class="page-modal reward-lay">
<a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
<h3 class="reward-title">
<i class="icon icon-quote-left"></i>
<%=theme.reward.title %>
<i class="icon icon-quote-right"></i>
</h3>
<div class="reward-content">
<%
var wechat = theme.reward.wechat;
var alipay = theme.reward.alipay;
%>
<div class="reward-code">
<img id="rewardCode" src="<%- url_for(wechat || alipay) %>" alt="打赏二维码">
</div>
<% if(!!wechat && !!alipay) { %>
<label class="reward-toggle">
<input id="rewardToggle" type="checkbox" class="reward-toggle-check"
data-wechat="<%- url_for(wechat) %>" data-alipay="<%- url_for(alipay) %>">
<div class="reward-toggle-ctrol">
<span class="reward-toggle-item wechat">微信</span>
<span class="reward-toggle-label"></span>
<span class="reward-toggle-item alipay">支付宝</span>
<div class="page-reward">
<div class="page-reward-btn waves-effect waves-circle waves-light">赏</div>
<div>
<h3 class="reward-title">
<i class="icon icon-quote-left"></i>
<%=theme.reward.title %>
<i class="icon icon-quote-right"></i>
</h3>
<div class="reward-content">
<%
var wechat = theme.reward.wechat;
var alipay = theme.reward.alipay;
%>
<div class="reward-code">
<img id="rewardCode" src="<%- url_for(wechat || alipay) %>" alt="打赏二维码">
</div>
</label>
<% } %>
<% if(!!wechat && !!alipay) { %>
<label class="reward-toggle">
<input id="rewardToggle" type="checkbox" class="reward-toggle-check"
data-wechat="<%- url_for(wechat) %>" data-alipay="<%- url_for(alipay) %>">
<div class="reward-toggle-ctrol">
<span class="reward-toggle-item wechat">微信</span>
<span class="reward-toggle-label"></span>
<span class="reward-toggle-item alipay">支付宝</span>
</div>
</label>
<% } %>
</div>
</div>
</div>
<% } %>
2 changes: 1 addition & 1 deletion layout/_partial/script.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ lazyScripts.push('//s95.cnzz.com/z_stat.php?id=<%-theme.cnzz %>&web_id=<%-theme.
<%- partial('plugins/mathjax') %>

<% if (theme.visit_counter) { %>
<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<% } %>

<%- partial('plugins/dynamic-title') %>
Binary file modified source/img/alipay.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/img/avatar.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed source/img/avatar.jpg
Binary file not shown.
Binary file modified source/img/wechat.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions source/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@
$('#search').addEventListener(even, toggleSearch);
},
reward: function () {
var modal = new this.modal('#reward');
$('#rewardBtn').addEventListener(even, modal.toggle);
// var modal = new this.modal('#reward');
// $('#rewardBtn').addEventListener(even, modal.toggle);

var $rewardToggle = $('#rewardToggle');
var $rewardCode = $('#rewardCode');
Expand Down
2 changes: 1 addition & 1 deletion source/js/main.min.js

Large diffs are not rendered by default.