From aece64e9f836fa8993f8d27b375e887dc94de594 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Tue, 2 Jul 2024 21:31:12 +0100 Subject: [PATCH] Theme: Add support for `chat` config (alternative to `gitter`) --- _config.yml | 2 +- _layouts/wrapper.html | 4 +++- docs/config.md | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/_config.yml b/_config.yml index 30e8a6e..31ca6bb 100644 --- a/_config.yml +++ b/_config.yml @@ -44,7 +44,7 @@ amethyst: edituri_base: https://github.com/qunitjs/jekyll-theme-amethyst/blob/main/ release_base: https://github.com/qunitjs/qunit/releases/tag/ github: qunitjs - gitter: qunitjs/qunit + chat: https://app.element.io/#/room/#qunitjs_qunit:gitter.im # https://github.com/qunitjs/jekyll-theme-amethyst/blob/main/docs/getting-started.md#enable-typesense typesense: origin: https://typesense.jquery.com diff --git a/_layouts/wrapper.html b/_layouts/wrapper.html index 4d1c0c0..1b71483 100644 --- a/_layouts/wrapper.html +++ b/_layouts/wrapper.html @@ -89,7 +89,9 @@ {%- if site.amethyst.twitter %} Twitter {% endif -%} - {%- if site.amethyst.gitter %} + {%- if site.amethyst.chat %} + Chat + {%- elsif site.amethyst.gitter %} Chat {%- endif %}

diff --git a/docs/config.md b/docs/config.md index 0472d1a..8966737 100644 --- a/docs/config.md +++ b/docs/config.md @@ -50,8 +50,8 @@ amethyst: twitter: # GitHub.com organisation or username (without "@") github: - # Gitter.im room (e.g. "qunitjs/qunit") - gitter: + # Chat room, e.g. https://app.element.io/#/room/#qunitjs_qunit:gitter.im + chat: # Search powered by Typesense # # https://github.com/qunitjs/jekyll-theme-amethyst/blob/main/docs/getting-started.md#enable-typesense