From 835655b289048a4227f8dd30ea5265427babb737 Mon Sep 17 00:00:00 2001 From: 1v9 Date: Thu, 14 Mar 2019 20:55:25 +0800 Subject: [PATCH 1/2] add icon option for chat button --- _config.yml | 1 + layout/_macro/sidebar.swig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 4c495b2824..fdabd07229 100644 --- a/_config.yml +++ b/_config.yml @@ -275,6 +275,7 @@ chat: enable: false #service: chatra #service: tidio + icon: comment # icon in Font Awesome4, set false to disable icon text: Chat # button text, change it as you wish # --------------------------------------------------------------- diff --git a/layout/_macro/sidebar.swig b/layout/_macro/sidebar.swig index 05b8da680e..6cb21c5b1c 100644 --- a/layout/_macro/sidebar.swig +++ b/layout/_macro/sidebar.swig @@ -111,7 +111,7 @@ {% if theme.chat.service == 'tidio' and theme.tidio.enable %} {% endif %} - + {% if theme.chat.icon %}{% endif %} {{ theme.chat.text }} From a0115455bf0be1ea225acec43c24ca62199f56ea Mon Sep 17 00:00:00 2001 From: 1v9 Date: Thu, 14 Mar 2019 21:04:27 +0800 Subject: [PATCH 2/2] fiX --- _config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index fdabd07229..0ee7942c64 100644 --- a/_config.yml +++ b/_config.yml @@ -275,7 +275,7 @@ chat: enable: false #service: chatra #service: tidio - icon: comment # icon in Font Awesome4, set false to disable icon + icon: comment # icon in Font Awesome 4, set false to disable icon text: Chat # button text, change it as you wish # ---------------------------------------------------------------