mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-26 05:19:01 +00:00
fix: copy code block logic for non code pages
This commit is contained in:
parent
f54df35767
commit
aaf31f419e
1 changed files with 1 additions and 3 deletions
|
@ -56,10 +56,8 @@
|
||||||
|
|
||||||
{{ if $.Site.Data.config.enableCodeBlockCopy }}
|
{{ if $.Site.Data.config.enableCodeBlockCopy }}
|
||||||
{{ $clipboard := resources.Get "js/clipboard.js" | resources.Fingerprint "md5" | resources.Minify }}
|
{{ $clipboard := resources.Get "js/clipboard.js" | resources.Fingerprint "md5" | resources.Minify }}
|
||||||
{{ if (findRE "<pre" .Content 1) }}
|
|
||||||
<script src="{{$clipboard.Permalink}}"></script>
|
<script src="{{$clipboard.Permalink}}"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<!-- Preload page vars -->
|
<!-- Preload page vars -->
|
||||||
{{$linkIndex := resources.Get "indices/linkIndex.json" | resources.Fingerprint
|
{{$linkIndex := resources.Get "indices/linkIndex.json" | resources.Fingerprint
|
||||||
|
|
Loading…
Reference in a new issue