Skip to content

Commit

Permalink
Merge pull request #314 from XPoet/dev
Browse files Browse the repository at this point in the history
Release new version
  • Loading branch information
XPoet authored Apr 3, 2024
2 parents 147c013 + fdd76b3 commit 4e54cc8
Show file tree
Hide file tree
Showing 15 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ footer:

site_deploy:
enable: false # Option values: true | false
provider: github # Option values: github | vercel | netlify | gitee | aliyun | tencent_cloud | upyun
provider: github # Option values: github | vercel | netlify | cloudflare | gitee | aliyun | tencent_cloud | upyun
url: # Your deployment provider url, Can be null

# When the footer style is shields, you can customize the shields configuration
Expand Down
1 change: 1 addition & 0 deletions languages/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ footer:
vercel: Vercel
netlify: Netlify
gitee: Gitee Pages
cloudflare: Cloudflare
aliyun: Alibaba Cloud
tencent_cloud: Tencent Cloud
upyun: UPYUN
Expand Down
1 change: 1 addition & 0 deletions languages/zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ footer:
github: GitHub Pages
vercel: Vercel
netlify: Netlify
cloudflare: Cloudflare
gitee: Gitee Pages
aliyun: 阿里云
tencent_cloud: 腾讯云
Expand Down
1 change: 1 addition & 0 deletions languages/zh-TW.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ footer:
github: GitHub Pages
vercel: Vercel
netlify: Netlify
cloudflare: Cloudflare
gitee: Gitee Pages
aliyun: 阿裏雲
tencent_cloud: 騰訊雲
Expand Down
2 changes: 1 addition & 1 deletion layout/_partial/footer.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const web_master = bi_author || hexo_author
<% } %>
<% if (f_site_deploy?.enable === true && f_site_deploy?.provider) { %>
<% const deploy_provider_img_tag = image_tag('/images/deploy-provider/' + f_site_deploy?.provider + '.png') %>
<% const deploy_provider_img_tag = image_tag('/images/brands/' + f_site_deploy?.provider + '.png') %>
<div class="deploy-info info-item <%= footer_style_type %>">
<% if (f_site_deploy?.url) { %>
<a target="_blank" rel="nofollow" href="<%= f_site_deploy?.url %>">
Expand Down
File renamed without changes
Binary file added source/images/brands/cloudflare.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file added source/images/brands/netlify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
Binary file removed source/images/deploy-provider/netlify.png
Binary file not shown.
6 changes: 5 additions & 1 deletion source/js/post/toc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ function initTOC() {
// get active index
getActiveIndex(navSections) {
if (!Array.isArray(navSections)) return
const offsetY = 20
const { isHideHeader, headerWrapperDom } = KEEP.utils
const headerH = isHideHeader ? 0 : headerWrapperDom.getBoundingClientRect().height
let index = navSections.findIndex((element) => {
return element && element.getBoundingClientRect().top - 20 > 0
return element && element.getBoundingClientRect().top - (offsetY + headerH) > 0
})

if (index === -1) {
index = navSections.length - 1
} else if (index > 0) {
Expand Down

0 comments on commit 4e54cc8

Please sign in to comment.