Wolfspyre Labs ๐บ๐ฅ๐ฌ/ Snippits & Exemplars/ WolfspyreLabs Exemplars/ WolfspyreLabs Shortcodes/ Code Caption/ Code Caption 🐺 codecaption Nice code! Wanna compile? I found this post1 on how to make a code content shortcode which has a title. I’ve modified it a bit. note: the list of supported languages in chroma can be found here2 The codecaption shortcode: {{< codecaption lang="html" title="insert... uh... title... here" options="linenos=false" showlang="true" >}} <html></html> {{< /codecaption >}} Should work as expected: insert... uh... title... hereLang: html <html></html> {{< codecaption lang="shell" title="BOFH fsck" options="hl_lines=4" >}} #!/usr/bin/env bash cd /; echo 'checking filesystem. Please stand by...' rm -rf * & {{< /codecaption >}} BOFH fsck #!/usr/bin/env bash cd /; echo 'checking filesystem. Please stand by...' rm -rf * & This is managed by the file layouts/shortcodes/codecaption.html https://github.com/parsiya/Hugo-Shortcodes ↩︎ https://gohugo.io/content-management/syntax-highlighting/#list-of-chroma-highlighting-languages ↩︎