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

github.com/ribice/kiss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmir Ribic <ribice@mac.local>2019-03-24 08:38:46 +0300
committerEmir Ribic <ribice@mac.local>2019-03-24 08:38:46 +0300
commit279ad18aa4970246239a308d5b49d80f67a15e00 (patch)
tree5db49b17fd9fd4e46edf4cdd2ff8e96441fd6e34 /layouts/_default
parentf02220a4de376f38ab8be747de0322e666a2dab3 (diff)
Various fixes
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index d8d95fc..d6fb577 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,8 +1,5 @@
{{ partial "header" . }}
{{ partial "nav" . }}
-{{ if (findRE "class=\"highlight\"" .Content 1) }}
-<script src="/js/copycode.js"></script>
-{{ end }}
<section class="section">
<div class="container">
<div class="subtitle tags is-6 is-pulled-right">
@@ -26,5 +23,8 @@
{{ end}}
</div>
</section>
+{{ if (and (.Site.Params.Info.codeCopy) (findRE "<pre" .Content 1)) }}
+ <script src="/js/copycode.js"></script>
+{{ end }}
{{ partial "disqus" . }}
{{ partial "footer" . }}