diff --git a/_config.yml b/_config.yml index 4856f24..f1efb4f 100644 --- a/_config.yml +++ b/_config.yml @@ -2,6 +2,7 @@ menu: Home: / Archives: /archives About: /about + rss: /atom.xml favicon: images/favicon.png @@ -13,12 +14,11 @@ page: right_side_width: 72 media_max_width: 960 - # Social Links. # Usage: `Key: permalink || icon` # Key is the link label showing to end users. # 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. +# Value after `||` delimeter is the name of FontAwesome icon. social: GitHub: https://github.com/XPoet || github E-Mail: mailto:i@xpoet.cn || envelope @@ -28,9 +28,7 @@ social: #FB Page: https://www.facebook.com/yourname || facebook #VK Group: https://vk.com/yourname || vk #StackOverflow: https://stackoverflow.com/yourname || stack-overflow - #YouTube: https://youtube.com/yourname || youtube #Instagram: https://instagram.com/yourname || instagram - #Skype: skype:yourname?call|chat || skype # Code Highlight theme @@ -46,7 +44,7 @@ valine: enable: true appid: ih2nzG3ilVNdLgJK4kBXTjOq-gzGzoHsz # your leancloud application appid appkey: gdf6tXXLBTLg9qpjS2y6Tbw7 # your leancloud application appkey - notify: false # mail notifier , https://github.com/xCss/Valine/wiki + notify: false # mail notifier, https://github.com/xCss/Valine/wiki verify: false # Verification code placeholder: 评论一下再走吧~ @@ -67,4 +65,8 @@ busuanzi_count: # custom pv span for one page only page_pv: false page_pv_header: - page_pv_footer: \ No newline at end of file + page_pv_footer: + + +# Theme version +version: 0.0.1 \ No newline at end of file diff --git a/layout/common/site-info.ejs b/layout/common/site-info.ejs index 7c99daf..ff0ae4c 100644 --- a/layout/common/site-info.ejs +++ b/layout/common/site-info.ejs @@ -1,16 +1,19 @@
-
+ +
<%- image_tag(theme.avatar, {class: 'avatar'}) %>
-
+ + -
+ +
<%= config.description %>
- \ No newline at end of file diff --git a/scripts/helper.js b/scripts/helper.js index b3c2dbc..803cb6d 100644 --- a/scripts/helper.js +++ b/scripts/helper.js @@ -4,10 +4,6 @@ * https://hexo.io/zh-cn/api/helper.html * eg 用法:<%= helper_test('xxx') %> */ -hexo.extend.helper.register('helper_test', function (character) { - return character + '😁'; -}); - hexo.extend.helper.register('isInHomePaging', function (pagePath, route) { if (pagePath.length > 5 && route === '/' ) { return pagePath.slice(0, 5) === 'page/'; diff --git a/source/css/layout/common/site-info.styl b/source/css/layout/common/site-info.styl index 6e73dd5..ab2d736 100644 --- a/source/css/layout/common/site-info.styl +++ b/source/css/layout/common/site-info.styl @@ -5,9 +5,12 @@ $description-font-size = 16px .site-info { padding 20px - text-align: center; + .info-item { + margin: 5px 0; + } + .avatar { padding: 2px; border-radius: 5%; @@ -15,8 +18,8 @@ $description-font-size = 16px width: 120px; } + .title { - margin: 5px 0; text-transform: uppercase; a { @@ -26,13 +29,14 @@ $description-font-size = 16px } } + .description { - padding 5px + padding: 5px; font-size: $description-font-size; } - .links-of-author-container { - margin-top: 10px; + + .links-of-author-warp { ul.links-of-author-list { position: absolute; @@ -49,7 +53,6 @@ $description-font-size = 16px .cc-license-container { - margin-top: 40px; .cc-opacity { position: absolute; @@ -59,7 +62,6 @@ $description-font-size = 16px &:hover { opacity: 1; - } } }