diff options
author | Evan <58769763+developer-evan@users.noreply.github.com> | 2020-06-27 07:07:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-27 07:07:41 +0300 |
commit | 45f20c2383a66f4a2c9fac3beec54ff326001a0e (patch) | |
tree | 0ff817787c79ab6456a0699a542980ddcd22e7d2 /layouts | |
parent | c6f90a8a547b2e6a9261d1bc884f2ed241605c63 (diff) | |
parent | 9257a18919455468d061b946edb8ec828d5458e3 (diff) |
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 )
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/list.html | 6 | ||||
-rw-r--r-- | layouts/author/single.html | 8 | ||||
-rw-r--r-- | layouts/partials/about.html | 4 | ||||
-rw-r--r-- | layouts/partials/blog.html | 4 | ||||
-rw-r--r-- | layouts/partials/contact.html | 4 | ||||
-rw-r--r-- | layouts/partials/portfolio.html | 4 | ||||
-rw-r--r-- | layouts/partials/pricing.html | 4 | ||||
-rw-r--r-- | layouts/partials/service.html | 4 | ||||
-rw-r--r-- | layouts/partials/skill.html | 4 | ||||
-rw-r--r-- | layouts/partials/team.html | 4 |
10 files changed, 23 insertions, 23 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 ebf4207..1b6cdff 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> diff --git a/layouts/partials/about.html b/layouts/partials/about.html index 2a32d23..1fc7924 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> diff --git a/layouts/partials/blog.html b/layouts/partials/blog.html index b2f8245..8395db5 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 db2b4ff..84f235f 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> diff --git a/layouts/partials/portfolio.html b/layouts/partials/portfolio.html index 15252bb..a5e5578 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}} diff --git a/layouts/partials/pricing.html b/layouts/partials/pricing.html index d2a5733..078e7f1 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> diff --git a/layouts/partials/service.html b/layouts/partials/service.html index e086fd8..2d97c97 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> diff --git a/layouts/partials/skill.html b/layouts/partials/skill.html index ad8431a..b064d73 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> diff --git a/layouts/partials/team.html b/layouts/partials/team.html index 36a9c3b..8a42492 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> |