|
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. | |
| | | | |
mattgreer.dev
|
|
| | | | | The browser's dev console can be a nice tool to extract data from a webpage. | |
| | | | |
daredevel.com
|
|
| | | In recent days, I worked to convert my Wordpress-based personal website to a static blog created using Hugo framework. The result of this conversion is the blog you are reading at the moment. I made this decision because I was bored to continously update and take care of a complete Wordpress instance with the purpose of keep online a simple personal blog. But this is another story... Anyway, I discovered Hugo Framework at the suggestion of my friend Giuseppe Pugliese (Magnetarman) and, after some scouting on official documentation, I understood that Hugo was what I was looking for: a fast and simple framework to build websites. | ||