diff options
author | Didier GEORGIEFF <d.georgieff@adhoc-gti.com> | 2020-06-26 02:58:49 +0300 |
---|---|---|
committer | Didier GEORGIEFF <d.georgieff@adhoc-gti.com> | 2020-06-26 02:58:49 +0300 |
commit | 9257a18919455468d061b946edb8ec828d5458e3 (patch) | |
tree | 88e2c57dd8b5b43d24d4d1fb1bdd5df5cf625147 /layouts | |
parent | 9737d54080d3b2ccd2390ad825864086d61ef41c (diff) |
Use safeHTML in split <h2> to use more than 2 words (use )
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/list.html | 6 | ||||
-rw-r--r-- | layouts/author/single.html | 10 | ||||
-rw-r--r-- | layouts/partials/about.html | 6 | ||||
-rw-r--r-- | layouts/partials/blog.html | 4 | ||||
-rw-r--r-- | layouts/partials/contact.html | 8 | ||||
-rw-r--r-- | layouts/partials/portfolio.html | 6 | ||||
-rw-r--r-- | layouts/partials/pricing.html | 6 | ||||
-rw-r--r-- | layouts/partials/service.html | 6 | ||||
-rw-r--r-- | layouts/partials/skill.html | 6 | ||||
-rw-r--r-- | layouts/partials/team.html | 4 |
10 files changed, 31 insertions, 31 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 21ec90f..794b726 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -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 }}
\ No newline at end of file +{{ end }} diff --git a/layouts/author/single.html b/layouts/author/single.html index 0fc7323..7e6ceba 100644 --- a/layouts/author/single.html +++ b/layouts/author/single.html @@ -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 }}
\ No newline at end of file +{{ end }} diff --git a/layouts/partials/about.html b/layouts/partials/about.html index 5c5c3ce..e364fe9 100644 --- a/layouts/partials/about.html +++ b/layouts/partials/about.html @@ -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 }}
\ No newline at end of file +{{ end }} diff --git a/layouts/partials/blog.html b/layouts/partials/blog.html index 07a727e..8fd72a6 100644 --- a/layouts/partials/blog.html +++ b/layouts/partials/blog.html @@ -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> diff --git a/layouts/partials/contact.html b/layouts/partials/contact.html index 2ec0831..d032610 100644 --- a/layouts/partials/contact.html +++ b/layouts/partials/contact.html @@ -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 }}
\ No newline at end of file +{{ end }} diff --git a/layouts/partials/portfolio.html b/layouts/partials/portfolio.html index 02945ba..69c37b0 100644 --- a/layouts/partials/portfolio.html +++ b/layouts/partials/portfolio.html @@ -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 }}
\ No newline at end of file +{{ end }} diff --git a/layouts/partials/pricing.html b/layouts/partials/pricing.html index b2ff7d1..bf09965 100644 --- a/layouts/partials/pricing.html +++ b/layouts/partials/pricing.html @@ -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 }}
\ No newline at end of file +{{ end }} diff --git a/layouts/partials/service.html b/layouts/partials/service.html index 2bdb491..717c64c 100644 --- a/layouts/partials/service.html +++ b/layouts/partials/service.html @@ -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 }}
\ No newline at end of file +{{ end }} diff --git a/layouts/partials/skill.html b/layouts/partials/skill.html index 148484a..39b9532 100644 --- a/layouts/partials/skill.html +++ b/layouts/partials/skill.html @@ -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 }}
\ No newline at end of file +{{ end }} diff --git a/layouts/partials/team.html b/layouts/partials/team.html index 637ad15..16ec1bb 100644 --- a/layouts/partials/team.html +++ b/layouts/partials/team.html @@ -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> |