PaperModX/layouts
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
..
_default Refactor, move HLJS code from footer to head; 2021-04-09 19:38:04 +05:30
partials Add copy button to copy code block contents (#345) 2021-04-10 11:33:31 +05:30
shortcodes Add support for `rtl` and `ltr` shortcodes (#293) 2021-03-22 16:47:40 +05:30
404.html Fix Spacing in overall repo 2021-03-30 18:26:43 +05:30
robots.txt layouts: use hugo.IsProduction 2020-12-13 20:19:25 +05:30