🎨 Add cloud resource & CDN service vendors information.

This commit is contained in:
凡梦星尘 2022-06-12 14:54:12 +08:00
parent a6820c7d32
commit 7ab696887c
6 changed files with 41 additions and 1 deletions

View File

@ -20,6 +20,18 @@
text-align: center; text-align: center;
@include flex-column(); @include flex-column();
@include main-container(); @include main-container();
@if $footer_vendors_enable {
.vendors-list {
a {
margin-right: 5px;
}
img {
display: inline-block;
}
}
}
} }
.use-motion { .use-motion {

View File

@ -22,6 +22,7 @@ $menu_settings_badges: {{ $P.menuSets.badges }};
$footer_icon_color: {{ $P.footer.icon.color }}; $footer_icon_color: {{ $P.footer.icon.color }};
$footer_icon_animated: {{ $P.footer.icon.animated }}; $footer_icon_animated: {{ $P.footer.icon.animated }};
$footer_beian_enable: {{ $P.footer.beian.enable }}; $footer_beian_enable: {{ $P.footer.beian.enable }};
$footer_vendors_enable: {{ isset $P.footer "vendors" }};
// Counter // Counter
$busuanzi_enable: {{ $P.busuanzi.enable }}; $busuanzi_enable: {{ $P.busuanzi.enable }};

View File

@ -321,6 +321,17 @@ params:
gonganNum: 31011402009770 gonganNum: 31011402009770
# The icon for gongan beian. See: http://www.beian.gov.cn/portal/download # The icon for gongan beian. See: http://www.beian.gov.cn/portal/download
#gongan_icon_url: #gongan_icon_url:
vendors:
title: 提供CDN/云资源支持
list:
- name: CloudBase Webify
link: https://webify.cloudbase.net
- name: Vercel
img: /imgs/vendors/vercel.svg || 55
link: https://vercel.com
- name: 又拍云
img: /imgs/vendors/upyun.png || 50
link: https://upyun.com
# --------------------------------------------------------------- # ---------------------------------------------------------------

View File

@ -89,3 +89,18 @@
</div> </div>
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- with $ft.vendors }}
<div class="vendors-list">
{{- range .list }}
<a target="_blank" href="{{ .link }}" title="{{ .name }}">
{{- if .img }}
{{ $img := split .img "||" }}
<img src="{{- trim (index $img 0) " " }}" width="{{- trim (index $img 1) " " -}}px" alt="{{ .name }}" />
{{- else }}
{{ .name }}
{{- end }}
</a>
{{- end }}
<span>{{ .title }}</span>
</div>
{{- end }}

BIN
static/imgs/vendors/upyun.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

1
static/imgs/vendors/vercel.svg vendored Normal file
View File

@ -0,0 +1 @@
<svg aria-label="Vercel Inc." xmlns="http://www.w3.org/2000/svg" viewBox="0 0 283 64"><path d="m37 0 37 64H0L37 0zm122.6 34c0-10.3-7.6-17.5-18.5-17.5s-18.5 7.2-18.5 17.5c0 10.1 8.2 17.5 19.5 17.5 6.2 0 11.8-2.3 15.4-6.5l-6.8-3.9c-2.1 2.1-5.2 3.4-8.6 3.4-5 0-9.3-2.7-10.8-6.8l-.3-.7h28.3c.2-1 .3-2 .3-3zm-28.7-3 .2-.6c1.3-4.3 5.1-6.9 9.9-6.9 4.9 0 8.6 2.6 9.9 6.9l.2.6h-20.2zm136.4 3c0-10.3-7.6-17.5-18.5-17.5s-18.5 7.2-18.5 17.5c0 10.1 8.2 17.5 19.5 17.5 6.2 0 11.8-2.3 15.4-6.5l-6.8-3.9c-2.1 2.1-5.2 3.4-8.6 3.4-5 0-9.3-2.7-10.8-6.8l-.3-.7H267c.2-1 .3-2 .3-3zm-28.7-3 .2-.6c1.3-4.3 5.1-6.9 9.9-6.9 4.9 0 8.6 2.6 9.9 6.9l.2.6h-20.2zm-19.3-2.7 6.8-3.9c-3.2-5-8.9-7.8-15.8-7.8-10.9 0-18.5 7.2-18.5 17.5s7.6 17.5 18.5 17.5c6.9 0 12.6-2.8 15.8-7.8l-6.8-3.9c-1.8 3-5 4.7-9 4.7-6.3 0-10.5-4.2-10.5-10.5s4.2-10.5 10.5-10.5c3.9 0 7.2 1.7 9 4.7zm63-22.7h-8v45h8v-45zm-153.8 0h-9.2L101.7 36 84.1 5.6h-9.3L101.7 52l26.8-46.4zm56.6 20.2c.9 0 1.8.1 2.7.3v-8.5c-6.8.2-13.2 4-13.2 8.7v-8.7h-8v33h8V36.3c0-6.2 4.3-10.5 10.5-10.5z"/></svg>

After

Width:  |  Height:  |  Size: 1022 B