diff --git a/_config.yml b/_config.yml index d7a94b1..efe722a 100644 --- a/_config.yml +++ b/_config.yml @@ -8,13 +8,12 @@ base_info: # Logo image (You can use local image, image external link or don’t fill) logo_img: - # --------------------------------------------------------------------------------------- # Theme style settings # --------------------------------------------------------------------------------------- style: # Theme primary color - primary_color: '#0066CC' + primary_color: "#0066CC" # Avatar (You can use local image or image external link) avatar: /images/avatar.svg @@ -33,13 +32,13 @@ style: # Mouse hover hover: - shadow: false # shadow effect when the mouse hover - scale: false # scale effect when the mouse hover + shadow: false # shadow effect when the mouse hover + scale: false # scale effect when the mouse hover # First screen first_screen: enable: false - background_img: /images/bg.svg # You can use local image or image external link + background_img: /images/bg.svg # You can use local image or image external link description: Keep writing and Keep loving. # Scroll style settings @@ -49,22 +48,20 @@ style: percent: enable: false - # --------------------------------------------------------------------------------------- # Social contact link # --------------------------------------------------------------------------------------- social_contact: enable: false links: - github: # your GitHub URL - weixin: # your WeChat QR-Code URL - qq: # your QQ QR-Code URL - weibo: # your WeiBo URL - zhihu: # your ZhiHu URL - twitter: # your twitter URL - facebook: # your facebook URL - email: # your email - + github: # your GitHub URL + weixin: # your WeChat QR-Code URL + qq: # your QQ QR-Code URL + weibo: # your WeiBo URL + zhihu: # your ZhiHu URL + twitter: # your twitter URL + facebook: # your facebook URL + email: # your email # --------------------------------------------------------------------------------------- # Navigation menu @@ -79,18 +76,16 @@ menu: # Changelog: /changelog # ...... - # --------------------------------------------------------------------------------------- # Home page article block display settings # --------------------------------------------------------------------------------------- home_article: category: - enable: false # show category in home page article block - limit: 3 # max number of categories shown in home page article block + enable: false # show category in home page article block + limit: 3 # max number of categories shown in home page article block tag: - enable: false # show tags in home page article block - limit: 5 # max number of tags shown 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 # --------------------------------------------------------------------------------------- # Post page Settings @@ -101,24 +96,22 @@ post: # See: https://github.com/willin/hexo-wordcount word_count: enable: false - wordcount: false # word count, one article - min2read: false # time to read, one article + wordcount: false # word count, one article + min2read: false # time to read, one article # Author label author_label: enable: true - auto: true # if true, show Lv1, Lv2, Lv3... , If false, show custom label + auto: true # if true, show Lv1, Lv2, Lv3... , If false, show custom label # 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: enable: false - style: default # values: default | mac - + style: default # values: default | mac # --------------------------------------------------------------------------------------- # Table of Contents in the Sidebar @@ -135,14 +128,12 @@ toc: # If true, open TOC every time when you enter the article page init_open: false - # --------------------------------------------------------------------------------------- # Post copyright info # --------------------------------------------------------------------------------------- copyright_info: enable: false - # --------------------------------------------------------------------------------------- # Website count # --------------------------------------------------------------------------------------- @@ -155,7 +146,6 @@ website_count: site_pv: false page_pv: false - # --------------------------------------------------------------------------------------- # Local Search # Dependencies: hexo-generator-searchdb @@ -163,37 +153,35 @@ website_count: # --------------------------------------------------------------------------------------- local_search: 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: enable: false - use: valine # values: valine | gitalk | twikoo + use: valine # values: valine | gitalk | twikoo # Valine # See: https://github.com/xCss/Valine valine: - appid: # your leancloud application appid - appkey: # your leancloud application appkey - placeholder: # your placeholder + appid: # your leancloud application appid + appkey: # your leancloud application appkey + placeholder: # your placeholder # Gitalk # See: https://github.com/gitalk/gitalk gitalk: - github_id: # GitHub repo owner - repository: # Repository name to store issues - client_id: # GitHub Application Client ID - client_secret: # GitHub Application Client Secret + github_id: # GitHub repo owner + repository: # Repository name to store issues + client_id: # GitHub Application Client ID + client_secret: # GitHub Application Client Secret # Twikoo # See: https://github.com/imaegoo/twikoo twikoo: - env_id: # Tencent Cloud environment id - region: # environment region. If select Guangzhou, fill in "ap-guangzhou". - + env_id: # Tencent Cloud environment id + region: # environment region. If select Guangzhou, fill in "ap-guangzhou". # --------------------------------------------------------------------------------------- # RSS @@ -203,35 +191,31 @@ comment: rss: enable: false - # --------------------------------------------------------------------------------------- # Lazyload image # --------------------------------------------------------------------------------------- lazyload: enable: false - # --------------------------------------------------------------------------------------- # CDN # --------------------------------------------------------------------------------------- cdn: enable: false - # --------------------------------------------------------------------------------------- # PJAX # --------------------------------------------------------------------------------------- pjax: enable: false - # --------------------------------------------------------------------------------------- # Footer settings # --------------------------------------------------------------------------------------- footer: - since: 2020 # the starting year of your website, Can be null - icp: # ICP record number 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 + upyun: # url # --------------------------------------------------------------------------------------- # Keep version (Please don't modify) diff --git a/layout/_partial/footer.ejs b/layout/_partial/footer.ejs index 51e4d25..0211f4d 100644 --- a/layout/_partial/footer.ejs +++ b/layout/_partial/footer.ejs @@ -28,5 +28,10 @@ <% if (theme.footer.hasOwnProperty('icp') && theme.footer.icp) { %>
<%= theme.footer.icp %>
<% } %> + <% if (theme.footer.hasOwnProperty('upyun') && theme.footer.upyun) { %> +
本网站由 + upyun + 提供CDN加速/云存储服务
+ <% } %> diff --git a/source/images/upyun.png b/source/images/upyun.png new file mode 100644 index 0000000..bf8ee10 Binary files /dev/null and b/source/images/upyun.png differ