Delete: 去除知识共享标识,以及冗余的功能
This commit is contained in:
parent
c0eefd1202
commit
d7b147a3be
14
_config.yml
14
_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:
|
||||
page_pv_footer:
|
||||
|
||||
|
||||
# Theme version
|
||||
version: 0.0.1
|
|
@ -1,16 +1,19 @@
|
|||
<div class="site-info">
|
||||
<div class="avatar-container">
|
||||
|
||||
<div class="avatar-warp info-item">
|
||||
<%- image_tag(theme.avatar, {class: 'avatar'}) %>
|
||||
</div>
|
||||
<div class="title">
|
||||
|
||||
<div class="title info-item">
|
||||
<a href="/"><%= config.title %></a>
|
||||
</div>
|
||||
<div class="description">
|
||||
|
||||
<div class="description info-item">
|
||||
<%= config.description %>
|
||||
</div>
|
||||
|
||||
<!-- 社交链接 -->
|
||||
<div class="links-of-author-container">
|
||||
<div class="links-of-author-warp info-item">
|
||||
<ul class="links-of-author-list">
|
||||
<% for (let link in theme.social) { %>
|
||||
<% const linkItem = theme.social[link].split(' || ') %>
|
||||
|
@ -24,10 +27,4 @@
|
|||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- 知识共享标识 -->
|
||||
<div class="cc-license-container">
|
||||
<a class="cc-opacity" href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">
|
||||
<img src="/images/cc-by-nc-sa.svg">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
|
@ -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/';
|
||||
|
|
|
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue