Call Shortcodes Inside Hugo Shortcodes

Call Shortcodes inside Hugo Shortcodes Hugo develop when you need to call shortcodes inside shortcodes. Nested Shortcodes Shortcodes Sample layouts/shortcodes/gallery.html 1 2 3 <div class="{{.Get "class"}}"> {{.Inner}} </div> layouts/shortcodes/img.html 1 2 3 4 5 6 {{- $src := . Read more

Hugo Markdown Tip

Hugo Markdown Tip Tips for typing Hugo Markdown. Get the last path of the URL path.Base PATH {{ path.Base "a/news.html" }} → "news.html" {{ path.Base "news.html" }} → "news.html" {{ path.Base "a/b/c" }} → "c" {{ path.Base "/x/y/z/" }} → "z" Get Page params {{< param testparam >}} {{< param "my. Read more

Hugo Enter Tags and Categories Default in Archetypes

Hugo, Enter Tags and Categories Default in Archetypes How to enter tags and categories defaults in archetypes by file path and name when using Hugo multilingual. For example Type below hugo new posts/my-first-post.md Printed like this 4 5 tags = ["posts","my","first","post"] categories = ["posts"] Let’s do it Add default. Read more