diff options
author | Kristopher Ives <kristopher.ives@gmail.com> | 2021-08-17 23:37:09 +0300 |
---|---|---|
committer | Kristopher Ives <kristopher.ives@gmail.com> | 2021-08-17 23:37:09 +0300 |
commit | bd576d58a16af03222490f85f8daff169513a28e (patch) | |
tree | d0c9c3f785d5980eb7369ed2916f6be4c8593772 /layouts | |
parent | 8073c981caa08d5c62acf8543036cb5a495ecf4e (diff) |
Added option to disable copy button for code blocks.
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/posts/single.html | 2 |
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 }} |