feat: get upyun support
This commit is contained in:
parent
827ca6faeb
commit
ee6751c32e
20
_config.yml
20
_config.yml
|
@ -8,13 +8,12 @@ base_info:
|
||||||
# Logo image (You can use local image, image external link or don’t fill)
|
# Logo image (You can use local image, image external link or don’t fill)
|
||||||
logo_img:
|
logo_img:
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Theme style settings
|
# Theme style settings
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
style:
|
style:
|
||||||
# Theme primary color
|
# Theme primary color
|
||||||
primary_color: '#0066CC'
|
primary_color: "#0066CC"
|
||||||
|
|
||||||
# Avatar (You can use local image or image external link)
|
# Avatar (You can use local image or image external link)
|
||||||
avatar: /images/avatar.svg
|
avatar: /images/avatar.svg
|
||||||
|
@ -49,7 +48,6 @@ style:
|
||||||
percent:
|
percent:
|
||||||
enable: false
|
enable: false
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Social contact link
|
# Social contact link
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
|
@ -65,7 +63,6 @@ social_contact:
|
||||||
facebook: # your facebook URL
|
facebook: # your facebook URL
|
||||||
email: # your email
|
email: # your email
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Navigation menu
|
# Navigation menu
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
|
@ -79,7 +76,6 @@ menu:
|
||||||
# Changelog: /changelog
|
# Changelog: /changelog
|
||||||
# ......
|
# ......
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Home page article block display settings
|
# Home page article block display settings
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
|
@ -91,7 +87,6 @@ home_article:
|
||||||
enable: false # show tags in home page article block
|
enable: false # show tags in home page article block
|
||||||
limit: 5 # max number of tags shown in home page article block
|
limit: 5 # max number of tags shown in home page article block
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Post page Settings
|
# Post page Settings
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
|
@ -111,7 +106,6 @@ post:
|
||||||
# label array item can be one or more
|
# label array item can be one or more
|
||||||
custom_label_list: ["Trainee", "Engineer", "Architect", "CTO", "BOSS"]
|
custom_label_list: ["Trainee", "Engineer", "Architect", "CTO", "BOSS"]
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Code copy
|
# Code copy
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
|
@ -119,7 +113,6 @@ code_copy:
|
||||||
enable: false
|
enable: false
|
||||||
style: default # values: default | mac
|
style: default # values: default | mac
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Table of Contents in the Sidebar
|
# Table of Contents in the Sidebar
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
|
@ -135,14 +128,12 @@ toc:
|
||||||
# If true, open TOC every time when you enter the article page
|
# If true, open TOC every time when you enter the article page
|
||||||
init_open: false
|
init_open: false
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Post copyright info
|
# Post copyright info
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
copyright_info:
|
copyright_info:
|
||||||
enable: false
|
enable: false
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Website count
|
# Website count
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
|
@ -155,7 +146,6 @@ website_count:
|
||||||
site_pv: false
|
site_pv: false
|
||||||
page_pv: false
|
page_pv: false
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Local Search
|
# Local Search
|
||||||
# Dependencies: hexo-generator-searchdb
|
# Dependencies: hexo-generator-searchdb
|
||||||
|
@ -165,7 +155,6 @@ local_search:
|
||||||
enable: false
|
enable: false
|
||||||
preload: false # Preload the search data when the page loads
|
preload: false # Preload the search data when the page loads
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Comment plugin
|
# Comment plugin
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
|
@ -194,7 +183,6 @@ comment:
|
||||||
env_id: # Tencent Cloud environment id
|
env_id: # Tencent Cloud environment id
|
||||||
region: # environment region. If select Guangzhou, fill in "ap-guangzhou".
|
region: # environment region. If select Guangzhou, fill in "ap-guangzhou".
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# RSS
|
# RSS
|
||||||
# Dependencies: hexo-generator-feed
|
# Dependencies: hexo-generator-feed
|
||||||
|
@ -203,35 +191,31 @@ comment:
|
||||||
rss:
|
rss:
|
||||||
enable: false
|
enable: false
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Lazyload image
|
# Lazyload image
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
lazyload:
|
lazyload:
|
||||||
enable: false
|
enable: false
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# CDN
|
# CDN
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
cdn:
|
cdn:
|
||||||
enable: false
|
enable: false
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# PJAX
|
# PJAX
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
pjax:
|
pjax:
|
||||||
enable: false
|
enable: false
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Footer settings
|
# Footer settings
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
footer:
|
footer:
|
||||||
since: 2020 # the starting year of your website, Can be null
|
since: 2020 # the starting year of your website, Can be null
|
||||||
icp: # ICP record number of your website, Can be null
|
icp: # ICP record number of your website, Can be null
|
||||||
|
upyun: # url
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Keep version (Please don't modify)
|
# Keep version (Please don't modify)
|
||||||
|
|
|
@ -28,5 +28,10 @@
|
||||||
<% if (theme.footer.hasOwnProperty('icp') && theme.footer.icp) { %>
|
<% if (theme.footer.hasOwnProperty('icp') && theme.footer.icp) { %>
|
||||||
<div class="icp-info info-item"><a target="_blank" rel="nofollow" href="https://beian.miit.gov.cn"><%= theme.footer.icp %></a></div>
|
<div class="icp-info info-item"><a target="_blank" rel="nofollow" href="https://beian.miit.gov.cn"><%= theme.footer.icp %></a></div>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
<% if (theme.footer.hasOwnProperty('upyun') && theme.footer.upyun) { %>
|
||||||
|
<div class="icp-info info-item"><a target="_blank" rel="nofollow" href="<%= theme.footer.upyun %>">本网站由
|
||||||
|
<img src="/images/upyun.png" alt="upyun" srcset="" height="24" style="position:relative; top:6px">
|
||||||
|
提供CDN加速/云存储服务</a></div>
|
||||||
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
Loading…
Reference in New Issue