mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-16 16:14:27 -04:00
Don't enable CodeCopyButtons by default
Change in var name disableCodeCopy -> ShowCodeCopyButtons
This commit is contained in:
parent
10745dd537
commit
3a8df7888e
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@
|
|||
</script>
|
||||
{{- end }}
|
||||
|
||||
{{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (not .Site.Params.disableCodeCopy)) }}
|
||||
{{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (.Site.Params.ShowCodeCopyButtons)) }}
|
||||
<script>
|
||||
document.querySelectorAll('pre > code').forEach((codeblock) => {
|
||||
const container = codeblock.parentNode.parentNode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue