From ed6ae6e389977160228c02d7737d27fe3a3b9a82 Mon Sep 17 00:00:00 2001 From: zhangshiliu Date: Mon, 23 Mar 2020 21:21:33 +0800 Subject: [PATCH] =?UTF-8?q?Add:=20=E4=B8=8D=E8=92=9C=E5=AD=90=E7=BD=91?= =?UTF-8?q?=E7=AB=99=E8=AE=A1=E6=95=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.yml | 33 +++++-- layout/common/footer.ejs | 25 ++++- layout/common/site-info.ejs | 41 ++++---- source/css/layout/common/footer.styl | 6 ++ source/css/layout/common/site-info.styl | 34 +++++++ source/images/cc-by-nc-sa.svg | 121 ++++++++++++++++++++++++ 6 files changed, 233 insertions(+), 27 deletions(-) create mode 100644 source/images/cc-by-nc-sa.svg diff --git a/_config.yml b/_config.yml index e72a623..d53f9af 100644 --- a/_config.yml +++ b/_config.yml @@ -9,8 +9,8 @@ favicon: images/favicon.png avatar: images/favicon.png page: - left_side_width: 25 - right_side_width: 75 + left_side_width: 28 + right_side_width: 72 media_max_width: 960 @@ -20,10 +20,11 @@ page: # Value before `||` delimeter is the target permalink. # Value after `||` delimeter is the name of FontAwesome icon. If icon (with or without delimeter) is not specified, globe icon will be loaded. social: - GitHub: https://github.com/itPoet || github + GitHub: https://github.com/XPoet || github E-Mail: mailto:i@xpoet.cn || envelope - # Google: https://plus.google.com/yourname || google - #Twitter: https://twitter.com/yourname || twitter + Google: https://plus.google.com/yourname || google + Twitter: https://twitter.com/yourname || twitter + Weibo: https://www.facebook.com/yourname || weibo #FB Page: https://www.facebook.com/yourname || facebook #VK Group: https://vk.com/yourname || vk #StackOverflow: https://stackoverflow.com/yourname || stack-overflow @@ -32,7 +33,6 @@ social: #Skype: skype:yourname?call|chat || skype -# 代码高亮设置 # Code Highlight theme # Available value: # normal | night | night eighties | night blue | night bright @@ -48,4 +48,23 @@ valine: appkey: gdf6tXXLBTLg9qpjS2y6Tbw7 # your leancloud application appkey notify: false # mail notifier , https://github.com/xCss/Valine/wiki verify: false # Verification code - placeholder: 评论一下再走吧~ \ No newline at end of file + placeholder: 评论一下再走吧~ + + +# Show PV/UV of the website/page with busuanzi. +# Get more information on http://ibruce.info/2015/04/04/busuanzi/ +busuanzi_count: + # count values only if the other configs are false + enable: true + # custom uv span for the whole site + site_uv: true + site_uv_header: + site_uv_footer: + # custom pv span for the whole site + site_pv: true + site_pv_header: + site_pv_footer: + # custom pv span for one page only + page_pv: false + page_pv_header: + page_pv_footer: \ No newline at end of file diff --git a/layout/common/footer.ejs b/layout/common/footer.ejs index a4baabe..900322e 100644 --- a/layout/common/footer.ejs +++ b/layout/common/footer.ejs @@ -1,10 +1,27 @@ \ No newline at end of file diff --git a/layout/common/site-info.ejs b/layout/common/site-info.ejs index bb59f30..7c99daf 100644 --- a/layout/common/site-info.ejs +++ b/layout/common/site-info.ejs @@ -1,24 +1,33 @@
- <%- image_tag(theme.avatar, {class: 'avatar'}) %> +
+ <%- image_tag(theme.avatar, {class: 'avatar'}) %> +
<%= config.description %>
- + + + + + +
+ + + +
\ No newline at end of file diff --git a/source/css/layout/common/footer.styl b/source/css/layout/common/footer.styl index e4c731b..2936dfe 100644 --- a/source/css/layout/common/footer.styl +++ b/source/css/layout/common/footer.styl @@ -1,6 +1,12 @@ .footer { .info-container { + font-size: 12px; padding-bottom 10px text-align center } + + .info-item { + margin 1px 0 + } + } \ No newline at end of file diff --git a/source/css/layout/common/site-info.styl b/source/css/layout/common/site-info.styl index ed28d57..6e73dd5 100644 --- a/source/css/layout/common/site-info.styl +++ b/source/css/layout/common/site-info.styl @@ -4,6 +4,7 @@ $logo-title-font-size = 28px $description-font-size = 16px .site-info { + padding 20px text-align: center; @@ -30,4 +31,37 @@ $description-font-size = 16px font-size: $description-font-size; } + .links-of-author-container { + margin-top: 10px; + + ul.links-of-author-list { + position: absolute; + left: 50%; + transform: translateX(-50%); + + li.links-of-author-item { + float: left + margin 0 5px + } + } + + } + + + .cc-license-container { + margin-top: 40px; + + .cc-opacity { + position: absolute; + left: 50%; + transform: translateX(-55%); + opacity: 0.7; + + &:hover { + opacity: 1; + + } + } + } + } \ No newline at end of file diff --git a/source/images/cc-by-nc-sa.svg b/source/images/cc-by-nc-sa.svg new file mode 100644 index 0000000..bf6bc26 --- /dev/null +++ b/source/images/cc-by-nc-sa.svg @@ -0,0 +1,121 @@ + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + +