mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 20:37:48 +00:00
Docs: update cdn (#291)
Signed-off-by: Carson Yang <yangchuansheng33@gmail.com>
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
|
||||
<!-- change -->
|
||||
<script
|
||||
src="https://cdn.jsdelivr.us/npm/medium-zoom/dist/medium-zoom.min.js"
|
||||
src="https://jsdelivr.icloudnative.io/npm/medium-zoom/dist/medium-zoom.min.js"
|
||||
crossorigin="anonymous"
|
||||
referrerpolicy="no-referrer"
|
||||
></script>
|
||||
|
14
docSite/layouts/partials/google-fonts.html
Normal file
14
docSite/layouts/partials/google-fonts.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{{ if .Site.Params.google_fonts }}
|
||||
{{ $fonts := slice }}
|
||||
{{ range .Site.Params.google_fonts }}
|
||||
{{ $family := replace (index (.) 0) " " "+" }}
|
||||
{{ $weights := replace (index (.) 1) " " "" }}
|
||||
{{ $string := print $family ":" $weights }}
|
||||
{{ $fonts = $fonts | append $string }}
|
||||
{{ end }}
|
||||
{{ $url_part := (delimit $fonts "|") | safeHTMLAttr }}
|
||||
<link rel="preconnect" href="https://gstatic.loli.net/" />
|
||||
<link rel="preconnect" href="https://gstatic.loli.net/" crossorigin />
|
||||
<link {{ printf "href=\"https://fonts.loli.net/css?family=%s%s\"" $url_part "&display=block" | safeHTMLAttr }} rel="stylesheet">
|
||||
{{ else}}
|
||||
{{ end }}
|
Reference in New Issue
Block a user