|
You are here |
ttntm.me | ||
| | | | |
aaronluna.dev
|
|
| | | | | Hugo includes a built-in syntax-highlighter called Chroma. Chroma is extremely fast since it is written in pure Go (like Hugo) and supports every language I can think of. Chroma's speed is especially important since syntax highlighters are notorious for causing slow page loads. However, it lacks one vital feature - an easy way to copy a code block to the clipboard. I decided to document my implementation using only vanilla JS since every blog post I found for this issue relied on jquery to parse the DOM,... | |
| | | | |
helenchong.dev
|
|
| | | | | How I added a button to copy code snippets to my website with JavaScript. | |
| | | | |
jordemort.dev
|
|
| | | | | Client-side JavaScript? On this site? It's more likely than you think! | |
| | | | |
hjr265.me
|
|
| | | A few weeks ago, I came across a blog post on my RSS reader: Building a blog in Django. This simple tutorial by Simon Willison was an enjoyable read. I understand the topic is not novel, but I liked how it reminds you of the simple features that enhance the implementation of a blog. Quoting from the blog post by Simon Willison: Here are the features I consider to be essential for a blog in 2023 (though they haven't changed much in over a decade): | ||