summaryrefslogtreecommitdiff
path: root/layouts/_default/baseof.html
diff options
context:
space:
mode:
authorroninro <liumy.f@foxmail.com>2022-07-29 19:47:30 +0800
committerroninro <liumy.f@foxmail.com>2022-07-29 19:47:30 +0800
commitfb84df6f8190a850b0456ca144139598bdb2800c (patch)
treec5d09ca27d988868a5d3d9342efe943f81e5995e /layouts/_default/baseof.html
parentf0e8a71001ad71fbeeab702eee7375f9c1d06960 (diff)
support Medium's Image Zoom
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 3b18f33..a57646a 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -33,6 +33,10 @@
{{ $style := resources.Get "sass/main.scss" | resources.ToCSS $options }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
+ {{ $zoom_css := resources.Get "zoomjs/zoom.css" | resources.Minify }}
+ <link rel="stylesheet" href="{{ $zoom_css.Permalink }}">
+
+
{{ range .Site.Params.custom_css -}}
{{ $custom_template := resources.Get . }}
{{ if $custom_template }}
@@ -69,7 +73,7 @@
{{ .Scratch.Set "header_img" $header_img }}
{{ end }}
- {{ if and .IsPage (gt .WordCount 400 ) (.Params.toc) }}
+ {{ if and .IsPage (.Params.toc) }}
{{ .Scratch.Set "toc" true }}
{{ end }}