Easily embed Kiwi IRC within Jekyll.
I have been using Kiwi IRC for a while now and with its easy embedding features I have decided to create a Jekyll plugin for it. Wanting to make this as simple as possible, I’ve decided to use Tags to embed within pages/blog posts. There are two methods you can choose between; A widget or custom client.
To configure the Kiwi IRC plugin, you can edit _config.yml
to include the following:
kiwiirc:
custom:
token: 3087b0899de5879c21147189d5cfd01b
widget:
channel: '#kiwiirc-default'
server: irc.kiwiirc.com
port: '+6697'
nick: kiwi?
Displaying Kiwi IRC in a page or blog post is as simple as:
# Embed a widget.
{% kiwiirc_widget %}
# Output:
<iframe src="https://kiwiirc.com/client/irc.kiwiirc.com:+6697/?nick=kiwi?#kiwiirc-default" style="border:0; width: 100%; height:450px;"></iframe>
# Embed the custom client.
{% kiwiirc_custom %}
# Output:
<iframe src="https://kiwiirc.com/client/?settings=3087b0899de5879c21147189d5cfd01b" style="border:0; width: 100%; height:450px;"></iframe>
It is also possible to pass configuration within the tags:
# Embed a widget.
{% kiwiirc_widget server: irc.voltirc.net, channel: #chat, nick: lt? %}
# Output:
<iframe src="https://kiwiirc.com/client/irc.voltirc.net:+6697/?nick=lt?#chat" style="border:0; width: 100%; height:450px;"></iframe>
# Embed the custom client.
{% kiwiirc_custom token: d7b61534ef45bb60e47579f69242927b %}
# Output:
<iframe src="https://kiwiirc.com/client/?settings=d7b61534ef45bb60e47579f69242927b" style="border:0; width: 100%; height:450px;"></iframe>
You can see a working example on my contact page.
Check it out on GitLab: https://gitlab.com/LouisT/jekyll-kiwiirc