Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/monkeyWzr/hugo-theme-cactus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristopher Ives <kristopher.ives@gmail.com>2021-08-17 23:37:09 +0300
committerKristopher Ives <kristopher.ives@gmail.com>2021-08-17 23:37:09 +0300
commitbd576d58a16af03222490f85f8daff169513a28e (patch)
treed0c9c3f785d5980eb7369ed2916f6be4c8593772 /layouts
parent8073c981caa08d5c62acf8543036cb5a495ecf4e (diff)
Added option to disable copy button for code blocks.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/posts/single.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index 8da82ea..5df437a 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -90,7 +90,9 @@
<link rel="stylesheet" href={{ "/lib/font-awesome/css/all.min.css" | relURL }}>
<script src={{ "/lib/jquery/jquery.min.js" | relURL }}></script>
<script src={{ "/js/main.js" | relURL }}></script>
+{{ if not (isset site.Params "disablecopy") }}
<script src={{ "js/code-copy.js" | relURL }}></script>
+{{ end }}
{{ $mathjax := false }}
{{ if isset .Params "mathjax" }}
{{ $mathjax = .Params.mathjax }}