mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 20:37:48 +00:00
docs: optimize css style (#700)
Signed-off-by: Carson Yang <yangchuansheng33@gmail.com>
This commit is contained in:
@@ -9,11 +9,11 @@
|
||||
{{ 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">
|
||||
<img src="{{ $image.RelPermalink | safeURL }}" alt="{{ $text }}" width="{{ $image.Width }}" height="{{ $image.Height }}" loading="lazy" class="medium-zoom-image">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<img src="{{ $dest | safeURL }}" alt="{{ $text }}" loading="lazy">
|
||||
<img src="{{ $dest | safeURL }}" alt="{{ $text }}" loading="lazy" class="medium-zoom-image">
|
||||
{{ end }}
|
||||
<figcaption>{{ .Title | markdownify }}</figcaption>
|
||||
</figure>
|
||||
@@ -23,10 +23,10 @@
|
||||
{{ 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">
|
||||
<img src="{{ $image.RelPermalink | safeURL }}" alt="{{ $text }}" width="{{ $image.Width }}" height="{{ $image.Height }}" loading="lazy" class="medium-zoom-image">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<img src="{{ $dest | safeURL }}" alt="{{ $text }}" loading="lazy">
|
||||
<img src="{{ $dest | safeURL }}" alt="{{ $text }}" loading="lazy" class="medium-zoom-image">
|
||||
{{ end }}
|
||||
{{ end }}
|
@@ -64,7 +64,7 @@
|
||||
></script>
|
||||
|
||||
<script>
|
||||
const images = Array.from(document.querySelectorAll(".main-content img"));
|
||||
const images = Array.from(document.querySelectorAll('.medium-zoom-image'));
|
||||
images.forEach((img) => {
|
||||
mediumZoom(img, {
|
||||
margin: 0 /* The space outside the zoomed image */,
|
||||
|
@@ -1,4 +1,5 @@
|
||||
<head>
|
||||
<script defer type="text/javascript" src="{{ "js/jsdelivr-auto-fallback.js" | absURL }}"></script>
|
||||
<meta charset="utf-8" />
|
||||
<title>
|
||||
{{- $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
|
||||
@@ -105,6 +106,6 @@
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
<!-- change -->
|
||||
<script defer type="text/javascript" src="{{ "js/jsdelivr-auto-fallback.js" | absURL }}"></script>
|
||||
<link rel="preload" href="https://cdn.jsdelivr.us/npm/lxgw-wenkai-screen-webfont@1.1.0/style.css" as="style" />
|
||||
<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