Skip to content

Commit

Permalink
Remove gitter support
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Jul 15, 2023
1 parent d3b76a8 commit 223ea19
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 30 deletions.
6 changes: 0 additions & 6 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -893,12 +893,6 @@ tidio:
enable: false
key: # Public Key, get it from dashboard. See: https://www.tidio.com/panel/settings/developer

# Gitter is a chat and networking platform.
# For more information: https://gitter.im
gitter:
enable: false
room:


# ---------------------------------------------------------------
# CDN Settings
Expand Down
4 changes: 2 additions & 2 deletions layout/_partials/sidebar/site-overview.njk
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
</div>
{%- endif %}

{%- if theme.chat.enable and (theme.chatra.enable or theme.tidio.enable or theme.gitter.enable) %}
{%- if theme.chat.enable and (theme.chatra.enable or theme.tidio.enable) %}
<div class="sidebar-button animated">
<button{% if theme.gitter.enable %} class="js-gitter-toggle-chat-button"{% endif %}>
<button>
{%- if theme.chat.icon %}<i class="{{ theme.chat.icon }}"></i>{% endif %}
{{ __('widget.chat') }}
</button>
Expand Down
3 changes: 0 additions & 3 deletions layout/_third-party/chat/gitter.njk

This file was deleted.

2 changes: 0 additions & 2 deletions layout/_third-party/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
{%- include 'chat/chatra.njk' -%}
{%- elif theme.tidio.enable %}
{%- include 'chat/tidio.njk' -%}
{%- elif theme.gitter.enable %}
{%- include 'chat/gitter.njk' -%}
{%- endif %}

{%- include 'tags/pdf.njk' -%}
Expand Down
4 changes: 0 additions & 4 deletions scripts/filters/minify.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ hexo.extend.filter.register('after_generate', () => {
hexo.route.remove('js/third-party/chat/tidio.js');
}

if (!theme.gitter.enable) {
hexo.route.remove('js/third-party/chat/gitter.js');
}

// Comments
if (!theme.changyan.enable || !theme.changyan.appid || !theme.changyan.appkey) {
hexo.route.remove('js/third-party/comments/changyan.js');
Expand Down
7 changes: 0 additions & 7 deletions source/css/_common/components/third-party/gitter.styl

This file was deleted.

1 change: 0 additions & 1 deletion source/css/_common/components/third-party/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
@import 'utterances';
@import 'search';
@import 'math';
@import 'gitter';

.use-motion .animated {
// Fix issue #48 #55
Expand Down
5 changes: 0 additions & 5 deletions source/js/third-party/chat/gitter.js

This file was deleted.

0 comments on commit 223ea19

Please sign in to comment.