Skip to content

Commit

Permalink
ui: add site deploy provider
Browse files Browse the repository at this point in the history
  • Loading branch information
XPoet committed Mar 12, 2024
1 parent 147c013 commit 7af3c52
Show file tree
Hide file tree
Showing 14 changed files with 5 additions and 2 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.

0 comments on commit 7af3c52

Please sign in to comment.