Delete: 去除知识共享标识,以及冗余的功能
This commit is contained in:
parent
c0eefd1202
commit
d7b147a3be
12
_config.yml
12
_config.yml
|
@ -2,6 +2,7 @@ menu:
|
||||||
Home: /
|
Home: /
|
||||||
Archives: /archives
|
Archives: /archives
|
||||||
About: /about
|
About: /about
|
||||||
|
|
||||||
rss: /atom.xml
|
rss: /atom.xml
|
||||||
|
|
||||||
favicon: images/favicon.png
|
favicon: images/favicon.png
|
||||||
|
@ -13,12 +14,11 @@ page:
|
||||||
right_side_width: 72
|
right_side_width: 72
|
||||||
media_max_width: 960
|
media_max_width: 960
|
||||||
|
|
||||||
|
|
||||||
# Social Links.
|
# Social Links.
|
||||||
# Usage: `Key: permalink || icon`
|
# Usage: `Key: permalink || icon`
|
||||||
# Key is the link label showing to end users.
|
# Key is the link label showing to end users.
|
||||||
# Value before `||` delimeter is the target permalink.
|
# 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:
|
social:
|
||||||
GitHub: https://github.com/XPoet || github
|
GitHub: https://github.com/XPoet || github
|
||||||
E-Mail: mailto:i@xpoet.cn || envelope
|
E-Mail: mailto:i@xpoet.cn || envelope
|
||||||
|
@ -28,9 +28,7 @@ social:
|
||||||
#FB Page: https://www.facebook.com/yourname || facebook
|
#FB Page: https://www.facebook.com/yourname || facebook
|
||||||
#VK Group: https://vk.com/yourname || vk
|
#VK Group: https://vk.com/yourname || vk
|
||||||
#StackOverflow: https://stackoverflow.com/yourname || stack-overflow
|
#StackOverflow: https://stackoverflow.com/yourname || stack-overflow
|
||||||
#YouTube: https://youtube.com/yourname || youtube
|
|
||||||
#Instagram: https://instagram.com/yourname || instagram
|
#Instagram: https://instagram.com/yourname || instagram
|
||||||
#Skype: skype:yourname?call|chat || skype
|
|
||||||
|
|
||||||
|
|
||||||
# Code Highlight theme
|
# Code Highlight theme
|
||||||
|
@ -46,7 +44,7 @@ valine:
|
||||||
enable: true
|
enable: true
|
||||||
appid: ih2nzG3ilVNdLgJK4kBXTjOq-gzGzoHsz # your leancloud application appid
|
appid: ih2nzG3ilVNdLgJK4kBXTjOq-gzGzoHsz # your leancloud application appid
|
||||||
appkey: gdf6tXXLBTLg9qpjS2y6Tbw7 # your leancloud application appkey
|
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
|
verify: false # Verification code
|
||||||
placeholder: 评论一下再走吧~
|
placeholder: 评论一下再走吧~
|
||||||
|
|
||||||
|
@ -68,3 +66,7 @@ busuanzi_count:
|
||||||
page_pv: false
|
page_pv: false
|
||||||
page_pv_header:
|
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="site-info">
|
||||||
<div class="avatar-container">
|
|
||||||
|
<div class="avatar-warp info-item">
|
||||||
<%- image_tag(theme.avatar, {class: 'avatar'}) %>
|
<%- image_tag(theme.avatar, {class: 'avatar'}) %>
|
||||||
</div>
|
</div>
|
||||||
<div class="title">
|
|
||||||
|
<div class="title info-item">
|
||||||
<a href="/"><%= config.title %></a>
|
<a href="/"><%= config.title %></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="description">
|
|
||||||
|
<div class="description info-item">
|
||||||
<%= config.description %>
|
<%= config.description %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 社交链接 -->
|
<!-- 社交链接 -->
|
||||||
<div class="links-of-author-container">
|
<div class="links-of-author-warp info-item">
|
||||||
<ul class="links-of-author-list">
|
<ul class="links-of-author-list">
|
||||||
<% for (let link in theme.social) { %>
|
<% for (let link in theme.social) { %>
|
||||||
<% const linkItem = theme.social[link].split(' || ') %>
|
<% const linkItem = theme.social[link].split(' || ') %>
|
||||||
|
@ -24,10 +27,4 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</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>
|
</div>
|
|
@ -4,10 +4,6 @@
|
||||||
* https://hexo.io/zh-cn/api/helper.html
|
* https://hexo.io/zh-cn/api/helper.html
|
||||||
* eg 用法:<%= helper_test('xxx') %>
|
* eg 用法:<%= helper_test('xxx') %>
|
||||||
*/
|
*/
|
||||||
hexo.extend.helper.register('helper_test', function (character) {
|
|
||||||
return character + '😁';
|
|
||||||
});
|
|
||||||
|
|
||||||
hexo.extend.helper.register('isInHomePaging', function (pagePath, route) {
|
hexo.extend.helper.register('isInHomePaging', function (pagePath, route) {
|
||||||
if (pagePath.length > 5 && route === '/' ) {
|
if (pagePath.length > 5 && route === '/' ) {
|
||||||
return pagePath.slice(0, 5) === 'page/';
|
return pagePath.slice(0, 5) === 'page/';
|
||||||
|
|
|
@ -5,9 +5,12 @@ $description-font-size = 16px
|
||||||
|
|
||||||
.site-info {
|
.site-info {
|
||||||
padding 20px
|
padding 20px
|
||||||
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
|
.info-item {
|
||||||
|
margin: 5px 0;
|
||||||
|
}
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
border-radius: 5%;
|
border-radius: 5%;
|
||||||
|
@ -15,8 +18,8 @@ $description-font-size = 16px
|
||||||
width: 120px;
|
width: 120px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
margin: 5px 0;
|
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
@ -26,13 +29,14 @@ $description-font-size = 16px
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
padding 5px
|
padding: 5px;
|
||||||
font-size: $description-font-size;
|
font-size: $description-font-size;
|
||||||
}
|
}
|
||||||
|
|
||||||
.links-of-author-container {
|
|
||||||
margin-top: 10px;
|
.links-of-author-warp {
|
||||||
|
|
||||||
ul.links-of-author-list {
|
ul.links-of-author-list {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -49,7 +53,6 @@ $description-font-size = 16px
|
||||||
|
|
||||||
|
|
||||||
.cc-license-container {
|
.cc-license-container {
|
||||||
margin-top: 40px;
|
|
||||||
|
|
||||||
.cc-opacity {
|
.cc-opacity {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -59,7 +62,6 @@ $description-font-size = 16px
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue