support adding `no-zoom` class to img

This commit is contained in:
Reorx 2022-05-29 17:51:46 +08:00
parent b562454b3e
commit 3398b4c6ab
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@
{{- if (.Param "EnableImageZoom") }} {{- if (.Param "EnableImageZoom") }}
<script> <script>
mediumZoom('.entry-cover img'); mediumZoom('.entry-cover img');
mediumZoom('.post-content img'); mediumZoom('.post-content img:not([no-zoom])');
</script> </script>
{{- end }} {{- end }}