diff options
author | 墨翎 <75666185+ink-soul@users.noreply.github.com> | 2022-07-02 15:21:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-02 15:21:57 +0300 |
commit | a6111f9f8c04484000214c5d5c21b2bcbe4368bf (patch) | |
tree | dc680ea3f89e82d878852fa25b1ebbbed25ab493 /layouts/partials/third-party/medium-zoom.html | |
parent | 790d2ab1432bb0aee4cc4ddcc12977676c9e0447 (diff) |
feat: support host customization for third-party libraries (#389)
Co-authored-by: reuixiy <reuixiy@gmail.com>
Diffstat (limited to 'layouts/partials/third-party/medium-zoom.html')
-rw-r--r-- | layouts/partials/third-party/medium-zoom.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/third-party/medium-zoom.html b/layouts/partials/third-party/medium-zoom.html index c9f59e6..b2abf4e 100644 --- a/layouts/partials/third-party/medium-zoom.html +++ b/layouts/partials/third-party/medium-zoom.html @@ -1,4 +1,6 @@ -<script src="https://cdn.jsdelivr.net/npm/medium-zoom@latest/dist/medium-zoom.min.js"></script> +{{- $src := partial "utils/lib.html" (dict "type" "medium-zoom") -}} + +<script src="{{ $src }}"></script> <script> let imgNodes = document.querySelectorAll('div.post-body img'); |