From 9547d244be448993e1789c2dd9144b54b5888433 Mon Sep 17 00:00:00 2001 From: Yukang Date: Wed, 23 Aug 2017 11:04:43 +0800 Subject: [PATCH 1/4] show logo.png for wechat share --- layout/_partial/head.ejs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index 2f21f48..eddca80 100644 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -15,6 +15,9 @@ <%= config.title %> <% } %> +
+ +
@@ -23,4 +26,4 @@ <%- js(['js/qrious', 'js/gitment']) %> - \ No newline at end of file + From 90af1627223ca48e312d94f2d3e2498d0571da65 Mon Sep 17 00:00:00 2001 From: Yukang Date: Wed, 23 Aug 2017 12:08:04 +0800 Subject: [PATCH 2/4] add douban profile option --- layout/about.ejs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 + From eb4f97e9ba0372590c9272c79cebd42ef086a6a7 Mon Sep 17 00:00:00 2001 From: yanm1ng Date: Wed, 23 Aug 2017 13:19:31 +0800 Subject: [PATCH 3/4] Fixed merge code style --- layout/_partial/head.ejs | 6 +++--- source/css/_partial/about.styl | 4 +++- source/css/style.styl | 8 ++++++++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index eddca80..f13a9b3 100644 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -15,9 +15,6 @@ <%= config.title %> <% } %> -
- -
@@ -27,3 +24,6 @@ <%- js(['js/qrious', 'js/gitment']) %> +
+ +
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 From 1365215f4275b3019157617f90d42eb06b8cb667 Mon Sep 17 00:00:00 2001 From: yanm1ng Date: Sat, 2 Sep 2017 20:55:09 +0800 Subject: [PATCH 4/4] fixed banner undefined is string not js undefined type --- layout/page.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 + ')' })