summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2021-04-25 05:30:00 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2021-04-25 05:30:00 +0530
commit3a8df7888ee79f556c2fbd85a7c85eacd5e0f229 (patch)
tree50a5f3c240b9f0fdbf81b11d9f49f33c9be2ce97 /layouts
parent10745dd53775a62fa80ad24f2b61c6c36bf9f1d6 (diff)
Don't enable CodeCopyButtons by default
Change in var name disableCodeCopy -> ShowCodeCopyButtons
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/footer.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 2c6511b..aa4c056 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -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;