OneBite.Dev - Coding blog in a bite size

How to concatenate string on hugo SSG

quick tips on How to concatenate string on hugo SSG or how to combine string with variable on gohugo

We can combine a raw string and a variable on a hugo and saved in on a new string

Example: I want to combine a title with a string

{{ $title := print .Title " is your title"}}

Later we can print or reuse the title above

{{ $title }}
hugo