主题修改

This commit is contained in:
结发受长生 2018-05-16 10:09:36 +08:00
parent a2c9824a6a
commit 6e681c843b
18 changed files with 47 additions and 49 deletions

View File

@ -1 +1,5 @@
个人介绍页面
---
title: 关于
date: 2016-01-31 22:10:28
pageid: about
---

View File

@ -1 +0,0 @@
.DS_Store

View File

@ -1,5 +0,0 @@
---
title: 关于
date: 2016-01-31 22:10:28
pageid: about
---

View File

@ -1,5 +0,0 @@
---
title: 留言
date: 2016-02-01 20:29:57
pageid: comment
---

View File

@ -133,7 +133,7 @@ SEO:
#----------------------------
# 百度分析
#----------------------------
baidu_analytics: true
baidu_analytics: false
#----------------------------
# 高亮样式

View File

@ -8,19 +8,15 @@
<ul style="list-style-type: none;">
<li>
<span class="icon-profile"></span>
查看<a href="javascript: alert('更新中...');" target="_blank">个人介绍</a>
</li>
<li>
<span class="icon-office"></span>
2014年7月毕业于中南民族大学
查看<a href="javascript: alert('更新中...');">个人介绍</a>
</li>
<li>
<span class="icon-newspaper"></span>
现工作于深圳,任职前端开发
现工作于北京,任职前端开发
</li>
<li>
<span class="icon-envelop"></span>
联系邮箱 jangdelong#qq.com'#'改为'@'
联系邮箱 init_pro#aliyun.com'#'改为'@'
</li>
</ul>
@ -32,7 +28,7 @@
<ul style="list-style-type: none;">
<li>
<span class="icon-files-empty"></span>
博客采用<a href="https://hexo.io/">Hexo</a>静态博客系统、主题为个人开发主题<a href="https://github.com/jangdelong/hexo-theme-xups" target="_blank">Xups</a> (<a href="https://hexo.io/themes/" target="_blank">Hexo 官网</a>已收录)
博客采用<a href="https://hexo.io/">Hexo</a>静态博客系统、主题为<a href="https://github.com/jangdelong/hexo-theme-xups" target="_blank">Xups</a> (<a href="https://hexo.io/themes/" target="_blank">Hexo 官网</a>已收录)
</li>
<li>
<span class="icon-files-empty"></span>
@ -52,6 +48,6 @@
<ul style="list-style-type: none;">
<li>
<span class="icon-github"></span>
<a href="https://github.com/jangdelong" target="_blank">我的Github</a>
<a href="https://github.com/sookie2010" target="_blank">我的Github</a>
</li>
</ul>

View File

@ -1,12 +0,0 @@
<!-- 自定义留言页 -->
<p class="text-center">
<img style="width: 258px; height: 258px; border: 1px solid #eee; padding: 0; border-radius: 3px;" src="<%- url_for('img/wechat_pay.png') %>">
</p>
<p class="text-center">
如果觉得博客对您有用,欢迎微信赞赏
</p>
<% if (theme.comment.enable) { %>
<%- partial('../_partial/post/comment') %>
<% } %>

View File

@ -3,4 +3,4 @@
<%- js('js/lib/polyfill.min') %>
<%- js('js/lib/vue.min') %>
<%- js('js/lib/axios.min') %>
<%- js('js/local_search') %>
<%- js('js/local-search') %>

View File

@ -2,11 +2,10 @@
<div class="article-share clearfix text-center">
<div class="share-area">
<span class="share-txt">分享到:</span>
<a href="javascript: window.open('http://service.weibo.com/share/share.php?url=' + encodeURIComponent(location.href) + '&title=' + document.title + '&language=zh_cn');" class="share-icon weibo"></a>
<a href="javascript: alert('请复制链接到微信并发送');" class="share-icon wechat"></a>
<a href="javascript: window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' + encodeURIComponent(location.href) + '&title=' + document.title);" class="share-icon qqzone"></a>
<a href="javascript: window.open('http://connect.qq.com/widget/shareqq/index.html?url=' + encodeURIComponent(location.href) + '&desc=Jelon个人博客&title=' + document.title + '&callback=' + encodeURIComponent(location.href));" class="share-icon qq"></a>
<a href="javascript: window.open('http://shuo.douban.com/!service/share?href=' + encodeURIComponent(location.href) + '&name=' + document.title + '&text=' + document.title);" class="share-icon douban"></a>
<a href="javascript:void(0);" class="share-icon weibo" onclick="JELON.Utils.share('weibo')"></a>
<a href="javascript:void(0);" class="share-icon qqzone" onclick="JELON.Utils.share('qqzone')"></a>
<a href="javascript:void(0);" class="share-icon qq" onclick="JELON.Utils.share('qq')"></a>
<a href="javascript:void(0);" class="share-icon douban" onclick="JELON.Utils.share('douban')"></a>
</div>
</div>
<% } %>

View File

@ -8,8 +8,6 @@
<%- partial('_custom/about', { page: page, post: page }) %>
<% } else if (page.pageid && page.pageid == 'lab') { %>
<%- partial('_custom/lab', { page: page, post: page }) %>
<% } else if (page.pageid && page.pageid == 'comment') { %>
<%- partial('_custom/comment', { page: page, post: page }) %>
<% } else { %>
<%- page.content %>
<% } %>

View File

@ -1 +0,0 @@
<!-- 文章按标签归档 -->

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

View File

@ -1,12 +1,9 @@
window.String.prototype.trim = window.String.prototype.trim || function () {
return this.replace(/^\s+|\s+$/g, '');
};
var JELON = window.JELON || {};
;(function (JL) {
var constants = {
ACCESS_TOKEN_KEY: 'xups-github-comments-token', // access_token key
USER_INFO_KEY: 'xups-github-user-info', // 登录用户信息 key
PER_PAGE: 5, // 每页的评论数
PER_PAGE: 10, // 每页的评论数
API_HOST: 'https://api.github.com'
};
var queryUrl = function (key, url, uncode) {
@ -117,6 +114,33 @@ var JELON = window.JELON || {};
}
return format;
};
/**
* 分享到社交平台
* @param {String} type
*/
var share = function(type) {
if(!type) return;
switch (type) {
case 'weibo' : //微博
window.open('http://service.weibo.com/share/share.php?url=' +
encodeURIComponent(location.href) + '&title=' + document.title + '&language=zh_cn');
break;
case 'qqzone' : //QQ空间
window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' +
encodeURIComponent(location.href) + '&title=' + document.title);
break;
case 'qq' : //QQ
window.open('http://connect.qq.com/widget/shareqq/index.html?url=' +
encodeURIComponent(location.href) + '&desc=Silence个人博客&title=' +
document.title + '&callback=' + encodeURIComponent(location.href));
break;
case 'douban' : //豆瓣
window.open('http://shuo.douban.com/!service/share?href=' +
encodeURIComponent(location.href) + '&name=' + document.title + '&text=' + document.title);
break;
default : console.warn('未知的分享类型', type)
}
}
/**
* 过滤字符串中的style link script标签, 防止注入
* @param {String} str 需要处理的字符串
@ -206,7 +230,8 @@ var JELON = window.JELON || {};
queryUrl: queryUrl,
addClass: addClass,
removeClass: removeClass,
formatDate: formatDate
formatDate: formatDate,
share: share
};
JL.Renders = {
box: {
@ -252,7 +277,7 @@ var JELON = window.JELON || {};
* @return void(0)
*/
update: function (page, comments, list, callback) {
var perNavPageMaxSize = 5;
var perNavPageMaxSize = 10;
var html = '';
var htmlList = [];
var pageList = [];