allow cover img zoom

This commit is contained in:
Reorx 2022-05-05 01:50:01 +08:00
parent c948d475fd
commit edc5565447
2 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,6 @@
.entry-cover img { .entry-cover img {
border-radius: var(--radius); border-radius: var(--radius);
pointer-events: none;
width: 100%; width: 100%;
height: auto; height: auto;
} }

View File

@ -234,6 +234,7 @@
{{- if site.Params.assets.disableFingerprinting }}integrity="{{ $imagezoom.Data.Integrity }}"{{- end }} {{- if site.Params.assets.disableFingerprinting }}integrity="{{ $imagezoom.Data.Integrity }}"{{- end }}
></script> ></script>
<script> <script>
mediumZoom('.entry-cover img');
mediumZoom('.post-content img'); mediumZoom('.post-content img');
</script> </script>
{{- end }} {{- end }}