<header class="box header"> {{ $tag := cond .IsHome "h1" "div" }} {{ printf "<%s class=\"title\">" $tag | safeHTML }} Takubeh<br> <small>Kombucha</small> {{ printf "</%s>" $tag | safeHTML }} </header>