Hugo cheatsheet
Table of Contents
Here are snippets of Hugo stuff I always forget.
Description | link |
---|---|
How to create a shortcode (shortcode parameter | https://gohugo.io/templates/shortcode-templates/#access-parameters |
Calling a partial | {{ partial “svgs/external-links.svg” . }} |
Calling a partial with multiple parameters | {{ partial “svgs/external-links.svg” ( dict “fill” “#01589B” “width” 10 “height” 20 ) }} https://gohugo.io/functions/dict/#example-using-dict-to-pass-multiple-values-to-a-partial |
dette er en test | dette også |