Use safeHTML in split <h2> to use more than 2 words (use )tags/v1.0.0
<div class="col-12"> | <div class="col-12"> | ||||
{{"<!-- section title -->" | safeHTML}} | {{"<!-- section title -->" | safeHTML}} | ||||
<div class="title text-center wow fadeInDown"> | <div class="title text-center wow fadeInDown"> | ||||
<h2>{{ with i18n "blogTitle" }} {{ index (split . " ") 0 }} {{ end }}<span class="color"> | |||||
{{ with i18n "blogTitle" }} {{ index (split . " ") 1 }} {{ end }}</span></h2> | |||||
<h2>{{ with i18n "blogTitle" }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color"> | |||||
{{ with i18n "blogTitle" }} {{ index (split . " ") 1 | safeHTML }} {{ end }}</span></h2> | |||||
<div class="border-meghna"></div> | <div class="border-meghna"></div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</section> | </section> | ||||
{{"<!-- /blog -->" | safeHTML}} | {{"<!-- /blog -->" | safeHTML}} | ||||
{{ end }} | |||||
{{ end }} |
<div class="row"> | <div class="row"> | ||||
<div class="col-lg-10 mx-auto"> | <div class="col-lg-10 mx-auto"> | ||||
<div class="title text-center"> | <div class="title text-center"> | ||||
<h2>{{ with i18n "aboutAuthor" }} {{ index (split . " ") 0 }} {{ end }}<span class="color"> | |||||
{{ with i18n "aboutAuthor" }} {{ index (split . " ") 1 }} {{ end }} </span></h2> | |||||
<h2>{{ with i18n "aboutAuthor" }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color"> | |||||
{{ with i18n "aboutAuthor" }} {{ index (split . " ") 1 | safeHTML }} {{ end }} </span></h2> | |||||
<div class="border-meghna"></div> | <div class="border-meghna"></div> | ||||
</div> | </div> | ||||
<div class="content text-center"> | <div class="content text-center"> | ||||
<div class="row"> | <div class="row"> | ||||
<div class="col-lg-12"> | <div class="col-lg-12"> | ||||
<div class="title text-center"> | <div class="title text-center"> | ||||
<h2>{{ with i18n "authorsPosts" }} {{ index (split . " ") 0 }} {{ end }}<span class="color"> | |||||
{{ with i18n "authorsPosts" }} {{ index (split . " ") 1 }} {{ end }}</h2> | |||||
<h2>{{ with i18n "authorsPosts" }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color"> | |||||
{{ with i18n "authorsPosts" }} {{ index (split . " ") 1 | safeHTML }} {{ end }}</h2> | |||||
<div class="border-meghna"></div> | <div class="border-meghna"></div> | ||||
</div> | </div> | ||||
</div> | </div> |
<div class="col-lg-12"> | <div class="col-lg-12"> | ||||
{{"<!-- section title -->" | safeHTML}} | {{"<!-- section title -->" | safeHTML}} | ||||
<div class="title text-center wow fadeIn" data-wow-duration="1500ms"> | <div class="title text-center wow fadeIn" data-wow-duration="1500ms"> | ||||
<h2> {{ with .title }} {{ index (split . " ") 0 }} {{ end }}<span class="color"> | |||||
{{ with .title }} {{ index (split . " ") 1 }} {{ end }} </span></h2> | |||||
<h2> {{ with .title }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color"> | |||||
{{ with .title }} {{ index (split . " ") 1 | safeHTML }} {{ end }} </span></h2> | |||||
<div class="border-meghna"></div> | <div class="border-meghna"></div> | ||||
</div> | </div> | ||||
</div> | </div> |
<div class="col-lg-12"> | <div class="col-lg-12"> | ||||
{{"<!-- section title -->" | safeHTML}} | {{"<!-- section title -->" | safeHTML}} | ||||
<div class="title text-center wow fadeInDown"> | <div class="title text-center wow fadeInDown"> | ||||
<h2>{{ with i18n "blogTitle" }} {{ index (split . " ") 0 }} {{ end }}<span class="color"> | |||||
{{ with i18n "blogTitle" }} {{ index (split . " ") 1 }} {{ end }}</span></h2> | |||||
<h2>{{ with i18n "blogTitle" }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color"> | |||||
{{ with i18n "blogTitle" }} {{ index (split . " ") 1 | safeHTML }} {{ end }}</span></h2> | |||||
<div class="border-meghna"></div> | <div class="border-meghna"></div> | ||||
</div> | </div> | ||||
</div> | </div> |
<div class="col-lg-12"> | <div class="col-lg-12"> | ||||
{{"<!-- section title -->" | safeHTML}} | {{"<!-- section title -->" | safeHTML}} | ||||
<div class="title text-center wow fadeIn" data-wow-duration="500ms"> | <div class="title text-center wow fadeIn" data-wow-duration="500ms"> | ||||
<h2>{{ with .title }} {{ index (split . " ") 0 }} {{ end }}<span class="color"> | |||||
{{ with .title }} {{ index (split . " ") 1 }} {{ end }}</span></h2> | |||||
<h2>{{ with .title }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color"> | |||||
{{ with .title }} {{ index (split . " ") 1 | safeHTML }} {{ end }}</span></h2> | |||||
<div class="border-meghna"></div> | <div class="border-meghna"></div> | ||||
</div> | </div> | ||||
</div> | </div> |
<div class="col-xl-12"> | <div class="col-xl-12"> | ||||
{{"<!-- section title -->" | safeHTML}} | {{"<!-- section title -->" | safeHTML}} | ||||
<div class="title text-center"> | <div class="title text-center"> | ||||
<h2>{{ with .title }} {{ index (split . " ") 0 }} {{ end }}<span class="color"> | |||||
{{ with .title }} {{ index (split . " ") 1 }} {{ end }}</span></h2> | |||||
<h2>{{ with .title }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color"> | |||||
{{ with .title }} {{ index (split . " ") 1 | safeHTML }} {{ end }}</span></h2> | |||||
<div class="border-meghna"></div> | <div class="border-meghna"></div> | ||||
</div> | </div> | ||||
{{"<!-- /section title -->" | safeHTML}} | {{"<!-- /section title -->" | safeHTML}} |
{{"<!-- section title -->" | safeHTML}} | {{"<!-- section title -->" | safeHTML}} | ||||
<div class="col-lg-12"> | <div class="col-lg-12"> | ||||
<div class="title text-center wow fadeInDown" data-wow-duration="500ms"> | <div class="title text-center wow fadeInDown" data-wow-duration="500ms"> | ||||
<h2>{{ with .title }} {{ index (split . " ") 0 }} {{ end }}<span class="color"> | |||||
{{ with .title }} {{ index (split . " ") 1 }} {{ end }}</span></h2> | |||||
<h2>{{ with .title }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color"> | |||||
{{ with .title }} {{ index (split . " ") 1 | safeHTML }} {{ end }}</span></h2> | |||||
<div class="border-meghna"></div> | <div class="border-meghna"></div> | ||||
</div> | </div> | ||||
</div> | </div> |
<div class="col-lg-12"> | <div class="col-lg-12"> | ||||
{{"<!-- section title -->" | safeHTML }} | {{"<!-- section title -->" | safeHTML }} | ||||
<div class="title text-center wow fadeIn" data-wow-duration="500ms"> | <div class="title text-center wow fadeIn" data-wow-duration="500ms"> | ||||
<h2>{{ with .title }} {{ index (split . " ") 0 }} {{ end }}<span class="color"> | |||||
{{ with .title }} {{ index (split . " ") 1 }} {{ end }} </span></h2> | |||||
<h2>{{ with .title }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color"> | |||||
{{ with .title }} {{ index (split . " ") 1 | safeHTML }} {{ end }} </span></h2> | |||||
<div class="border-meghna"></div> | <div class="border-meghna"></div> | ||||
</div> | </div> | ||||
</div> | </div> |
{{"<!-- section title -->" | safeHTML }} | {{"<!-- section title -->" | safeHTML }} | ||||
<div class="col-lg-12"> | <div class="col-lg-12"> | ||||
<div class="title text-center"> | <div class="title text-center"> | ||||
<h2>{{ with .title }} {{ index (split . " ") 0 }} {{ end }}<span class="color"> | |||||
{{ with .title }} {{ index (split . " ") 1 }} {{ end }} </span></h2> | |||||
<h2>{{ with .title }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color"> | |||||
{{ with .title }} {{ index (split . " ") 1 | safeHTML }} {{ end }} </span></h2> | |||||
<div class="border-meghna"></div> | <div class="border-meghna"></div> | ||||
</div> | </div> | ||||
</div> | </div> |
<div class="col-lg-12"> | <div class="col-lg-12"> | ||||
{{"<!-- section title -->" | safeHTML}} | {{"<!-- section title -->" | safeHTML}} | ||||
<div class="title text-center wow fadeInUp" data-wow-duration="500ms"> | <div class="title text-center wow fadeInUp" data-wow-duration="500ms"> | ||||
<h2>{{ with .title }} {{ index (split . " ") 0 }} {{ end }}<span class="color"> | |||||
{{ with .title }} {{ index (split . " ") 1 }} {{ end }}</span></h2> | |||||
<h2>{{ with .title }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color"> | |||||
{{ with .title }} {{ index (split . " ") 1 | safeHTML }} {{ end }}</span></h2> | |||||
<div class="border-meghna"></div> | <div class="border-meghna"></div> | ||||
</div> | </div> | ||||
</div> | </div> |