Hi all, best feature of Hugo is shortcodes for me.
I’m using them as html snippets
Now I’m collecting them on a github reposity.
feel free to conribute or comment here is the github page and demo
Youtube and dailymotion is working on local but its broken when i upload them :/
Good idea. Do you know about the internal Hugo shortcodes which come out of the box? It’s figure, gist, instagram, ref and relref, tweet, vimeo, youtube etc. They’re here: https://gohugo.io/content-management/shortcodes/#readout
I’m working on making a website that will compile hugo shortcodes from around the web and ones that users submit. It’ll include some teaching on what each part does for people to learn and understand more and organization by some categories.
Great. I use shortcodes a lot and take a look in my archive. If there’s something of interest I’ll give it to you. I assume I can contribute to the repo once it’s online, right?
I would build a Github or Bitbucket repo. So others can send commit requests and you can decide whether or how to implement. This is how I work with my team which is spread over the country. You can even make a Github pages website from that repo - totally flexible.
I generated my blog website (https://codingnconcepts.com/) using hugo static site generator. I am using quite a few shortcodes which I find very useful like
Current Year
Link to open in a new browser window
Highlighter
Strikethrough
Code Block Output
I have written how to create them from scratch here:-