Browse Source

Merge pull request #117 from divinerites/Use-safeHTML-in-H2-split-title-to-manage-more-than-2-words

Use safeHTML in split <h2> to use more than 2 words (use &nbsp;)
tags/v1.0.0
Evan 4 years ago
parent
commit
45f20c2383
No account linked to committer's email address

+ 3
- 3
layouts/_default/list.html View File

<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 }}

+ 4
- 4
layouts/author/single.html View File

<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>

+ 2
- 2
layouts/partials/about.html View File

<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>

+ 2
- 2
layouts/partials/blog.html View File

<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>

+ 2
- 2
layouts/partials/contact.html View File

<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>

+ 2
- 2
layouts/partials/portfolio.html View File

<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}}

+ 2
- 2
layouts/partials/pricing.html View File

{{"<!-- 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>

+ 2
- 2
layouts/partials/service.html View File

<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>

+ 2
- 2
layouts/partials/skill.html View File

{{"<!-- 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>

+ 2
- 2
layouts/partials/team.html View File

<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>

Loading…
Cancel
Save