diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs
index 2f21f48..f13a9b3 100644
--- a/layout/_partial/head.ejs
+++ b/layout/_partial/head.ejs
@@ -23,4 +23,7 @@
<%- js(['js/qrious', 'js/gitment']) %>
-
\ No newline at end of file
+
+
+
+
diff --git a/layout/about.ejs b/layout/about.ejs
index 8ad9cd7..a1817d5 100644
--- a/layout/about.ejs
+++ b/layout/about.ejs
@@ -38,6 +38,14 @@
<% } %>
+ <% if (config.douban_username) { %>
+
+
+
+ 豆
+
+
+ <% } %>
@@ -53,4 +61,4 @@
})
}
})();
-
\ No newline at end of file
+
diff --git a/layout/page.ejs b/layout/page.ejs
index 75bd5d1..ea34c9a 100644
--- a/layout/page.ejs
+++ b/layout/page.ejs
@@ -49,7 +49,7 @@
(function () {
var url = '<%= config.url %>/<%= page.path %>';
var banner = '<%= page.banner %>'
- if (banner) {
+ if (banner !== 'undefined') {
$('#article-banner').css({
'background-image': 'url(' + banner + ')'
})
diff --git a/source/css/_partial/about.styl b/source/css/_partial/about.styl
index 4aa3b0e..1dc1814 100644
--- a/source/css/_partial/about.styl
+++ b/source/css/_partial/about.styl
@@ -72,4 +72,6 @@
.icon-zhihu
color: #0767c8
.icon-twitter
- color: #2aa9e0
\ No newline at end of file
+ color: #2aa9e0
+ .icon-douban
+ color: #00B51D
\ No newline at end of file
diff --git a/source/css/style.styl b/source/css/style.styl
index 1cd6cab..7a26288 100644
--- a/source/css/style.styl
+++ b/source/css/style.styl
@@ -37,6 +37,14 @@ p
pre
overflow-x: auto
+.wechat-share
+ width: 0
+ height: 0
+ overflow: hidden
+ img
+ width: 400px
+ height 400px
+
.app-body
padding: 1em
margin: 0 auto