-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(syntax): add copy to clipboard button for every code snippet
- Loading branch information
Showing
7 changed files
with
1,283 additions
and
7 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
documentation/content/Components/code-copy-to-clipboard.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
Title: Code Snippets -- Copy to Clipboard | ||
Tags: code-snippets, gist, unique | ||
Date: 2020-02-03 19:17 | ||
comments: false | ||
Slug: code-snippets-copy-to-clipboard | ||
authors: Talha Mansoor | ||
Category: Components | ||
--- | ||
|
||
Elegant is the only Pelican theme that comes with a "Copy To Clipboard" button | ||
on every code snippet. | ||
|
||
Try it out | ||
|
||
```go | ||
fmt.Println("Hello Clipboard") | ||
``` | ||
|
||
We use excellent JavaScript library, [clipboard.js](https://clipboardjs.com/) for this feature. Your readers do not need Flash for this feature. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.