mirror of
https://github.com/falsycat/ar.falsy.cat.git
synced 2024-12-26 00:14:51 +00:00
fix: copy code block logic for non code pages
This commit is contained in:
parent
f54df35767
commit
aaf31f419e
@ -56,9 +56,7 @@
|
||||
|
||||
{{ if $.Site.Data.config.enableCodeBlockCopy }}
|
||||
{{ $clipboard := resources.Get "js/clipboard.js" | resources.Fingerprint "md5" | resources.Minify }}
|
||||
{{ if (findRE "<pre" .Content 1) }}
|
||||
<script src="{{$clipboard.Permalink}}"></script>
|
||||
{{ end }}
|
||||
<script src="{{$clipboard.Permalink}}"></script>
|
||||
{{ end }}
|
||||
|
||||
<!-- Preload page vars -->
|
||||
|
Loading…
Reference in New Issue
Block a user