diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2021-05-03 23:52:00 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2021-05-03 23:52:00 +0200 |
commit | 6720168dd507dfaf58629718ef6bc7b7073699b2 (patch) | |
tree | 63a1ecc38140c0d5ce02cb1f507d8da9fffc66c1 /layouts/partials/docs | |
parent | 6a1932611cb183f913c4b827cffa2b0b11dbdc4f (diff) |
#281, Copy code block content on click
Diffstat (limited to 'layouts/partials/docs')
-rw-r--r-- | layouts/partials/docs/footer.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/partials/docs/footer.html b/layouts/partials/docs/footer.html index 7f1a08a..6e1a694 100644 --- a/layouts/partials/docs/footer.html +++ b/layouts/partials/docs/footer.html @@ -23,3 +23,8 @@ </div> {{ end }} </div> + +{{ $script := resources.Get "clipboard.js" | resources.Minify }} +{{ with $script.Content }} + <script>{{ . | safeJS }}</script> +{{ end }} |