hugo-geekblog/layouts/partials/foot.html

9 lines
300 B
HTML
Raw Normal View History

2020-07-06 18:55:32 +00:00
{{ if default true .Site.Params.GeekblogAnchorCopy }}
<script defer src="{{ index .Site.Data.assets "js/clipboard.min.js" | relURL }}"></script>
2020-07-06 18:55:32 +00:00
<script>
document.addEventListener("DOMContentLoaded", function(event) {
var clipboard = new ClipboardJS('.clip');
});
</script>
{{ end }}