lexs
10/4/2017 - 3:36 AM

Hugo string and variable concationation

Use printf function. Whenever "%s" is inserted, the variable will be printed.


{{ $topicStyle ="lex"}}
{{ $topicStyleClass := (printf "topic--%s" $topicStyle ) }}