hugo-PaperMod/layouts/partials
Kian Kasad 17c4da86b5
Add copy button to copy code block contents (#345)
* add buttons to copy code block contents

Adds a clickable "copy" link in the top-right corner of each code block.

If available, uses the navigator.clipboard API. Falls back to selecting
the text and calling document.execCommand('copy') to copy text.

* hides copy button unless mouse is hovering over code block

* change text of copy button when text is copied

* add translation keys for copy button text  `code_copy` and `code_copied`

* To disable use `Params.disableCodeCopy: true` in site config
2021-04-10 11:33:31 +05:30
..
templates Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
anchored_headings.html Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
author.html Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
breadcrumbs.html Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
comments.html Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
cover.html Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
edit_post.html Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
extend_footer.html Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
extend_head.html Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
footer.html Add copy button to copy code block contents (#345) 2021-04-10 11:33:31 +05:30
head.html Use js.Build to fetch fuseOpts; 2021-04-10 00:58:23 +05:30
header.html Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
home_info.html Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
index_profile.html Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
post_meta.html Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
post_nav_links.html Move post nav links to a partial section (#343) 2021-04-09 14:55:56 +05:30
share_icons.html Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
social_icons.html Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
svg.html Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
toc.html Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
translation_list.html Remove humanize from translation list 2021-03-31 11:49:28 +05:30