Skip to content

Commit

Permalink
Theme: Add support for chat config (alternative to gitter)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krinkle committed Jul 2, 2024
1 parent afb3d69 commit aece64e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion _layouts/wrapper.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@
{%- if site.amethyst.twitter %}
<a href="https://twitter.com/{{ site.amethyst.twitter | escape }}" target="_blank" rel="noopener">Twitter</a>
{% endif -%}
{%- if site.amethyst.gitter %}
{%- if site.amethyst.chat %}
<a href="{{ site.amethyst.chat | escape }}" target="_blank" rel="noopener">Chat</a>
{%- elsif site.amethyst.gitter %}
<a href="https://gitter.im/{{ site.amethyst.gitter | escape }}" target="_blank" rel="noopener">Chat</a>
{%- endif %}
</p>
Expand Down
4 changes: 2 additions & 2 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aece64e

Please sign in to comment.