From d6389dfe1fe101a465054793ddd973ddf6b50092 Mon Sep 17 00:00:00 2001 From: nekketsuuu Date: Sat, 4 Jan 2020 13:54:56 +0900 Subject: don't output logo if logo_url is not set --- _includes/git-wiki/sections/header/header.html | 2 ++ 1 file changed, 2 insertions(+) (limited to '_includes/git-wiki/sections/header') diff --git a/_includes/git-wiki/sections/header/header.html b/_includes/git-wiki/sections/header/header.html index 8612103..8c7f5bb 100644 --- a/_includes/git-wiki/sections/header/header.html +++ b/_includes/git-wiki/sections/header/header.html @@ -1,7 +1,9 @@
+ {% if site.logo_url %} + {% endif %} {{ site.title }}
-- cgit 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 --- _includes/git-wiki/sections/header/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_includes/git-wiki/sections/header') 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 From 89fbb2f4a2ab7d8a51d665ea399e1b242528b30f Mon Sep 17 00:00:00 2001 From: Yehonal Date: Mon, 6 Jan 2020 14:01:22 +0100 Subject: Fixed wrong behaviour with title --- _includes/git-wiki/sections/header/header.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '_includes/git-wiki/sections/header') diff --git a/_includes/git-wiki/sections/header/header.html b/_includes/git-wiki/sections/header/header.html index 262bed9..ea83b2c 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 | escape }}
@@ -52,4 +52,4 @@ $(sidebar).attr('style', 'display: block;'); } } - \ No newline at end of file + -- cgit From f787baf3be7257bd93cfd44a813b7f2d803cafb5 Mon Sep 17 00:00:00 2001 From: Yehonal Date: Mon, 6 Jan 2020 19:02:51 +0100 Subject: Show title if no logo set in desktop mode --- _includes/git-wiki/sections/header/header.html | 2 ++ 1 file changed, 2 insertions(+) (limited to '_includes/git-wiki/sections/header') diff --git a/_includes/git-wiki/sections/header/header.html b/_includes/git-wiki/sections/header/header.html index ea83b2c..cd2f322 100644 --- a/_includes/git-wiki/sections/header/header.html +++ b/_includes/git-wiki/sections/header/header.html @@ -17,6 +17,8 @@
{% if site.logo_url %} {% include git-wiki/components/logo/logo.html %} + {% else %} + {{ site.title | escape }} {% endif %}
-- cgit From 9d22819dbae5fd44f3bd4adb3eb38454200f6c7f Mon Sep 17 00:00:00 2001 From: Yehonal Date: Mon, 6 Jan 2020 19:09:46 +0100 Subject:

for title --- _includes/git-wiki/sections/header/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_includes/git-wiki/sections/header') diff --git a/_includes/git-wiki/sections/header/header.html b/_includes/git-wiki/sections/header/header.html index cd2f322..38ec85b 100644 --- a/_includes/git-wiki/sections/header/header.html +++ b/_includes/git-wiki/sections/header/header.html @@ -18,7 +18,7 @@ {% if site.logo_url %} {% include git-wiki/components/logo/logo.html %} {% else %} - {{ site.title | escape }} +

{{ site.title | escape }}

{% endif %} -- cgit