Pārlūkot izejas kodu

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

tags/v1.0.0
Didier GEORGIEFF pirms 4 gadiem
vecāks
revīzija
9257a18919

+ 3
- 3
layouts/_default/list.html Parādīt failu

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

+ 5
- 5
layouts/author/single.html Parādīt failu

@@ -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>
@@ -56,4 +56,4 @@
</div>
</div>
</section>
{{ end }}
{{ end }}

+ 3
- 3
layouts/partials/about.html Parādīt failu

@@ -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>
@@ -36,4 +36,4 @@
</section>
{{"<!-- /about -->" | safeHTML}}
{{ end }}
{{ end }}
{{ end }}

+ 2
- 2
layouts/partials/blog.html Parādīt failu

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

+ 4
- 4
layouts/partials/contact.html Parādīt failu

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

+ 3
- 3
layouts/partials/portfolio.html Parādīt failu

@@ -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}}
@@ -67,4 +67,4 @@
</section>
{{"<!-- /Portfolio -->" | safeHTML}}
{{ end }}
{{ end }}
{{ end }}

+ 3
- 3
layouts/partials/pricing.html Parādīt failu

@@ -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>
@@ -48,4 +48,4 @@
</section>
{{"<!-- /pricing -->" | safeHTML}}
{{ end }}
{{ end }}
{{ end }}

+ 3
- 3
layouts/partials/service.html Parādīt failu

@@ -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>
@@ -34,4 +34,4 @@
</section>
{{"<!-- /service -->" | safeHTML }}
{{ end }}
{{ end }}
{{ end }}

+ 3
- 3
layouts/partials/skill.html Parādīt failu

@@ -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>
@@ -45,4 +45,4 @@
</section>
{{"<!-- /skill -->" | safeHTML }}
{{ end }}
{{ end }}
{{ end }}

+ 2
- 2
layouts/partials/team.html Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt