Browse Source

Use safeHTML in split <h2> to use more than 2 words (use &nbsp;)

tags/v1.0.0
Didier GEORGIEFF 4 years ago
parent
commit
9257a18919

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

+ 5
- 5
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>
</div> </div>
</div> </div>
</section> </section>
{{ end }}
{{ end }}

+ 3
- 3
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>
</section> </section>
{{"<!-- /about -->" | safeHTML}} {{"<!-- /about -->" | safeHTML}}
{{ end }} {{ end }}
{{ end }}
{{ end }}

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

+ 4
- 4
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>
<div class="contact-info col-lg-6 wow fadeInUp" data-wow-duration="500ms"> <div class="contact-info col-lg-6 wow fadeInUp" data-wow-duration="500ms">
<h3>{{ .subtitle | markdownify }}</h3> <h3>{{ .subtitle | markdownify }}</h3>
<p> {{ .content | markdownify }} </p> <p> {{ .content | markdownify }} </p>
{{ if .contact_form.enable }} {{ if .contact_form.enable }}
<div class="contact-details"> <div class="contact-details">
{{ range .contact_list }} {{ range .contact_list }}
</section> </section>
{{"<!-- /contact -->" | safeHTML}} {{"<!-- /contact -->" | safeHTML}}
{{ end }} {{ end }}
{{ end }}
{{ end }}

+ 3
- 3
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}}
</section> </section>
{{"<!-- /Portfolio -->" | safeHTML}} {{"<!-- /Portfolio -->" | safeHTML}}
{{ end }} {{ end }}
{{ end }}
{{ end }}

+ 3
- 3
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>
</section> </section>
{{"<!-- /pricing -->" | safeHTML}} {{"<!-- /pricing -->" | safeHTML}}
{{ end }} {{ end }}
{{ end }}
{{ end }}

+ 3
- 3
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>
</section> </section>
{{"<!-- /service -->" | safeHTML }} {{"<!-- /service -->" | safeHTML }}
{{ end }} {{ end }}
{{ end }}
{{ end }}

+ 3
- 3
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>
</section> </section>
{{"<!-- /skill -->" | safeHTML }} {{"<!-- /skill -->" | safeHTML }}
{{ end }} {{ end }}
{{ end }}
{{ end }}

+ 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