diff --git a/source/about/index.md b/source/about/index.md
index 5a2b024..c92f5ac 100644
--- a/source/about/index.md
+++ b/source/about/index.md
@@ -1 +1,5 @@
-个人介绍页面
\ No newline at end of file
+---
+title: 关于
+date: 2016-01-31 22:10:28
+pageid: about
+---
\ No newline at end of file
diff --git a/themes/hexo-theme-xups/__source/lab/index.md b/source/lab/index.md
similarity index 100%
rename from themes/hexo-theme-xups/__source/lab/index.md
rename to source/lab/index.md
diff --git a/themes/hexo-theme-xups/.gitignore b/themes/hexo-theme-xups/.gitignore
deleted file mode 100644
index e43b0f9..0000000
--- a/themes/hexo-theme-xups/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-.DS_Store
diff --git a/themes/hexo-theme-xups/__source/about/index.md b/themes/hexo-theme-xups/__source/about/index.md
deleted file mode 100644
index c92f5ac..0000000
--- a/themes/hexo-theme-xups/__source/about/index.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-title: 关于
-date: 2016-01-31 22:10:28
-pageid: about
----
\ No newline at end of file
diff --git a/themes/hexo-theme-xups/__source/comment/index.md b/themes/hexo-theme-xups/__source/comment/index.md
deleted file mode 100644
index 7d1f2e2..0000000
--- a/themes/hexo-theme-xups/__source/comment/index.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-title: 留言
-date: 2016-02-01 20:29:57
-pageid: comment
----
diff --git a/themes/hexo-theme-xups/_config.yml b/themes/hexo-theme-xups/_config.yml
index 1b1dde3..dd4a05f 100644
--- a/themes/hexo-theme-xups/_config.yml
+++ b/themes/hexo-theme-xups/_config.yml
@@ -133,7 +133,7 @@ SEO:
#----------------------------
# 百度分析
#----------------------------
-baidu_analytics: true
+baidu_analytics: false
#----------------------------
# 高亮样式
diff --git a/themes/hexo-theme-xups/layout/_custom/about.ejs b/themes/hexo-theme-xups/layout/_custom/about.ejs
index d7da15f..9ca8963 100644
--- a/themes/hexo-theme-xups/layout/_custom/about.ejs
+++ b/themes/hexo-theme-xups/layout/_custom/about.ejs
@@ -8,19 +8,15 @@
-
- 查看个人介绍
-
- -
-
- 2014年7月,毕业于中南民族大学
+ 查看个人介绍
-
- 现工作于深圳,任职前端开发
+ 现工作于北京,任职前端开发
-
- 联系邮箱 jangdelong#qq.com('#'改为'@')
+ 联系邮箱 init_pro#aliyun.com('#'改为'@')
@@ -32,7 +28,7 @@
-
- 博客采用Hexo静态博客系统、主题为个人开发主题Xups (Hexo 官网已收录)
+ 博客采用Hexo静态博客系统、主题为Xups (Hexo 官网已收录)
-
@@ -52,6 +48,6 @@
diff --git a/themes/hexo-theme-xups/layout/_custom/comment.ejs b/themes/hexo-theme-xups/layout/_custom/comment.ejs
deleted file mode 100644
index 29b33c3..0000000
--- a/themes/hexo-theme-xups/layout/_custom/comment.ejs
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
- 如果觉得博客对您有用,欢迎微信赞赏
-
-<% if (theme.comment.enable) { %>
- <%- partial('../_partial/post/comment') %>
-<% } %>
diff --git a/themes/hexo-theme-xups/layout/_partial/after-footer.ejs b/themes/hexo-theme-xups/layout/_partial/after-footer.ejs
index 9dddd06..22f88d1 100644
--- a/themes/hexo-theme-xups/layout/_partial/after-footer.ejs
+++ b/themes/hexo-theme-xups/layout/_partial/after-footer.ejs
@@ -3,4 +3,4 @@
<%- js('js/lib/polyfill.min') %>
<%- js('js/lib/vue.min') %>
<%- js('js/lib/axios.min') %>
-<%- js('js/local_search') %>
\ No newline at end of file
+<%- js('js/local-search') %>
\ No newline at end of file
diff --git a/themes/hexo-theme-xups/layout/_partial/post/share.ejs b/themes/hexo-theme-xups/layout/_partial/post/share.ejs
index 477f42a..af26c43 100644
--- a/themes/hexo-theme-xups/layout/_partial/post/share.ejs
+++ b/themes/hexo-theme-xups/layout/_partial/post/share.ejs
@@ -2,11 +2,10 @@
<% } %>
\ No newline at end of file
diff --git a/themes/hexo-theme-xups/layout/page.ejs b/themes/hexo-theme-xups/layout/page.ejs
index 775ae29..5a6c1d1 100644
--- a/themes/hexo-theme-xups/layout/page.ejs
+++ b/themes/hexo-theme-xups/layout/page.ejs
@@ -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 %>
<% } %>
diff --git a/themes/hexo-theme-xups/layout/tags.ejs b/themes/hexo-theme-xups/layout/tags.ejs
deleted file mode 100644
index 6d06771..0000000
--- a/themes/hexo-theme-xups/layout/tags.ejs
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/themes/hexo-theme-xups/source/img/default.png b/themes/hexo-theme-xups/source/img/default.png
deleted file mode 100644
index 168a11c..0000000
Binary files a/themes/hexo-theme-xups/source/img/default.png and /dev/null differ
diff --git a/themes/hexo-theme-xups/source/img/url.png b/themes/hexo-theme-xups/source/img/url.png
deleted file mode 100644
index 610fecd..0000000
Binary files a/themes/hexo-theme-xups/source/img/url.png and /dev/null differ
diff --git a/themes/hexo-theme-xups/source/img/wechat_jelon.png b/themes/hexo-theme-xups/source/img/wechat_jelon.png
deleted file mode 100644
index 7cddc1e..0000000
Binary files a/themes/hexo-theme-xups/source/img/wechat_jelon.png and /dev/null differ
diff --git a/themes/hexo-theme-xups/source/img/wechat_pay.png b/themes/hexo-theme-xups/source/img/wechat_pay.png
deleted file mode 100644
index a05d213..0000000
Binary files a/themes/hexo-theme-xups/source/img/wechat_pay.png and /dev/null differ
diff --git a/themes/hexo-theme-xups/source/js/comment.js b/themes/hexo-theme-xups/source/js/comment.js
index 893f2e4..52a9b0f 100644
--- a/themes/hexo-theme-xups/source/js/comment.js
+++ b/themes/hexo-theme-xups/source/js/comment.js
@@ -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 = [];
diff --git a/themes/hexo-theme-xups/source/js/local_search.js b/themes/hexo-theme-xups/source/js/local-search.js
similarity index 100%
rename from themes/hexo-theme-xups/source/js/local_search.js
rename to themes/hexo-theme-xups/source/js/local-search.js