Use safeHTML in split <h2> to use more than 2 words (use )tags/v1.0.0
@@ -9,8 +9,8 @@ | |||
<div class="col-12"> | |||
{{"<!-- section title -->" | safeHTML}} | |||
<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> | |||
</div> | |||
@@ -27,4 +27,4 @@ | |||
</section> | |||
{{"<!-- /blog -->" | safeHTML}} | |||
{{ end }} | |||
{{ end }} |
@@ -7,8 +7,8 @@ | |||
<div class="row"> | |||
<div class="col-lg-10 mx-auto"> | |||
<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> | |||
<div class="content text-center"> | |||
@@ -45,8 +45,8 @@ | |||
<div class="row"> | |||
<div class="col-lg-12"> | |||
<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> | |||
</div> |
@@ -9,8 +9,8 @@ | |||
<div class="col-lg-12"> | |||
{{"<!-- section title -->" | safeHTML}} | |||
<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> | |||
</div> |
@@ -6,8 +6,8 @@ | |||
<div class="col-lg-12"> | |||
{{"<!-- section title -->" | safeHTML}} | |||
<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> | |||
</div> |
@@ -9,8 +9,8 @@ | |||
<div class="col-lg-12"> | |||
{{"<!-- section title -->" | safeHTML}} | |||
<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> | |||
</div> |
@@ -9,8 +9,8 @@ | |||
<div class="col-xl-12"> | |||
{{"<!-- section title -->" | safeHTML}} | |||
<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> | |||
{{"<!-- /section title -->" | safeHTML}} |
@@ -10,8 +10,8 @@ | |||
{{"<!-- section title -->" | safeHTML}} | |||
<div class="col-lg-12"> | |||
<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> | |||
</div> |
@@ -9,8 +9,8 @@ | |||
<div class="col-lg-12"> | |||
{{"<!-- section title -->" | safeHTML }} | |||
<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> | |||
</div> |
@@ -9,8 +9,8 @@ | |||
{{"<!-- section title -->" | safeHTML }} | |||
<div class="col-lg-12"> | |||
<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> | |||
</div> |
@@ -9,8 +9,8 @@ | |||
<div class="col-lg-12"> | |||
{{"<!-- section title -->" | safeHTML}} | |||
<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> | |||
</div> |