Only load copy-and-paste helper on pages that use it

This change helps improve load times for key non-documentation pages
such as https://kubernetes.io/
This commit is contained in:
Tim Bannister
2020-09-29 18:27:45 +01:00
parent e2233f570a
commit 735410f17b
5 changed files with 44 additions and 72 deletions
-1
View File
@@ -85,7 +85,6 @@
<meta property="og:image" content="{{ "/images/kubernetes-horizontal-color.png" | relURL }}">
{{ end }}
<meta property="og:type" content="{{ $ogType }}">
<script src="{{ "js/sweetalert-2.1.2.min.js" | relURL }}"></script>
{{ if .HasShortcode "mermaid" }}
<!-- Copied from https://unpkg.com/mermaid@8.5.0/dist/mermaid.min.js -->