mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 12:20:34 +00:00
docs: update cdn link (#698)
Signed-off-by: Carson Yang <yangchuansheng33@gmail.com>
This commit is contained in:
32
docSite/layouts/docs/_markup/render-image.html
Normal file
32
docSite/layouts/docs/_markup/render-image.html
Normal file
@@ -0,0 +1,32 @@
|
||||
{{ $dest := .Destination }}
|
||||
{{ $text := .PlainText }}
|
||||
{{ $url := urls.Parse $dest }}
|
||||
|
||||
{{ if .Title }}
|
||||
<figure>
|
||||
{{ if eq $url.Scheme "" }}
|
||||
{{ with $image := resources.Get $dest }}
|
||||
{{ if eq $image.MediaType.SubType "svg" }}
|
||||
{{ $image.Content | safeHTML }}
|
||||
{{ else }}
|
||||
<img src="{{ $image.RelPermalink | safeURL }}" alt="{{ $text }}" width="{{ $image.Width }}" height="{{ $image.Height }}" loading="lazy">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<img src="{{ $dest | safeURL }}" alt="{{ $text }}" loading="lazy">
|
||||
{{ end }}
|
||||
<figcaption>{{ .Title | markdownify }}</figcaption>
|
||||
</figure>
|
||||
{{ else }}
|
||||
{{ if eq $url.Scheme "" }}
|
||||
{{ with $image := resources.Get $dest }}
|
||||
{{ if eq $image.MediaType.SubType "svg" }}
|
||||
{{ $image.Content | safeHTML }}
|
||||
{{ else }}
|
||||
<img src="{{ $image.RelPermalink | safeURL }}" alt="{{ $text }}" width="{{ $image.Width }}" height="{{ $image.Height }}" loading="lazy">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<img src="{{ $dest | safeURL }}" alt="{{ $text }}" loading="lazy">
|
||||
{{ end }}
|
||||
{{ end }}
|
@@ -58,7 +58,7 @@
|
||||
|
||||
<!-- change -->
|
||||
<script
|
||||
src="https://cdn.jsdelivr.net/npm/medium-zoom/dist/medium-zoom.min.js"
|
||||
src="https://cdn.jsdelivr.us/npm/medium-zoom/dist/medium-zoom.min.js"
|
||||
crossorigin="anonymous"
|
||||
referrerpolicy="no-referrer"
|
||||
></script>
|
||||
|
@@ -106,5 +106,5 @@
|
||||
{{- end -}}
|
||||
<!-- change -->
|
||||
<script defer type="text/javascript" src="{{ "js/jsdelivr-auto-fallback.js" | absURL }}"></script>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lxgw-wenkai-screen-webfont@1.1.0/style.css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.us/npm/lxgw-wenkai-screen-webfont@1.1.0/style.css" />
|
||||
</head>
|
Reference in New Issue
Block a user