From f98b158f36f7b6323bca657d539ed60cfd723a8d Mon Sep 17 00:00:00 2001 From: Takuma Ishikawa Date: Mon, 6 Jan 2020 17:39:55 +0900 Subject: Escape several strings, especially title (#71) Co-authored-by: Yehonal --- .../git-wiki/components/action_btn/page_actions.html | 20 ++++++++++---------- _includes/git-wiki/components/lists/page-list.html | 2 +- _includes/git-wiki/components/lists/post-list.html | 2 +- _includes/git-wiki/components/logo/logo.html | 2 +- _includes/git-wiki/sections/header/header.html | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) (limited to '_includes') diff --git a/_includes/git-wiki/components/action_btn/page_actions.html b/_includes/git-wiki/components/action_btn/page_actions.html index 097dc51..b9151b4 100644 --- a/_includes/git-wiki/components/action_btn/page_actions.html +++ b/_includes/git-wiki/components/action_btn/page_actions.html @@ -5,28 +5,28 @@ History Source {% else %} - Add + Add new - Edit + Edit {% if site.service == "gitlab" %} - Delete + Delete {% else %} - Delete + Delete {% endif %} - History - Source + History + Source {% if site.blog_feature %} - Add + Add new post {% endif %} {% if site.use_prose_io and site.service == "github" %}
Prose.io: - Add + Add new - Edit + Edit {% if site.blog_feature %} - Add + Add new post {% endif %} {% endif %} diff --git a/_includes/git-wiki/components/lists/page-list.html b/_includes/git-wiki/components/lists/page-list.html index dea6758..8129bf0 100644 --- a/_includes/git-wiki/components/lists/page-list.html +++ b/_includes/git-wiki/components/lists/page-list.html @@ -15,7 +15,7 @@ {% if page.is_wiki_page != false and page.sitemap != false %}
  • {% assign title = page.title | default: page.name %} - {{title}} + {{title | escape}}
  • {% assign numPages = numPages | plus: 1 %} {% endif %} diff --git a/_includes/git-wiki/components/lists/post-list.html b/_includes/git-wiki/components/lists/post-list.html index d6fa663..579dab5 100644 --- a/_includes/git-wiki/components/lists/post-list.html +++ b/_includes/git-wiki/components/lists/post-list.html @@ -15,7 +15,7 @@ {% if post.layout != "null" and post.sitemap != false and post.title %}
  • - {{ post.title}} + {{ post.title | escape }}
  • {% assign numPages = numPages | plus: 1 %} {% endif %} diff --git a/_includes/git-wiki/components/logo/logo.html b/_includes/git-wiki/components/logo/logo.html index d33305e..375b06b 100644 --- a/_includes/git-wiki/components/logo/logo.html +++ b/_includes/git-wiki/components/logo/logo.html @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/_includes/git-wiki/sections/header/header.html b/_includes/git-wiki/sections/header/header.html index 8c7f5bb..262bed9 100644 --- a/_includes/git-wiki/sections/header/header.html +++ b/_includes/git-wiki/sections/header/header.html @@ -3,8 +3,8 @@ {% if site.logo_url %} + {{ site.title | escape }} {% endif %} - {{ site.title }}
    -- cgit