Skip to content

Commit 75cf9d7

Browse files
authored
Create Discord page (#73)
1 parent 6d74cb6 commit 75cf9d7

File tree

5 files changed

+27
-12
lines changed

5 files changed

+27
-12
lines changed

.eleventy.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ const cacheBuster = require('@mightyplow/eleventy-plugin-cache-buster');
44
const htmlmin = require('html-minifier');
55
const { minify } = require('terser');
66
const siteSettings = require('./src/globals/site.json');
7-
const {
8-
version: eleventyVersion,
9-
} = require('./node_modules/@11ty/eleventy/package.json');
107

118
const dateFormatter = Intl.DateTimeFormat('en-US', {
129
year: 'numeric',
@@ -26,10 +23,6 @@ module.exports = function (eleventyConfig) {
2623
return new Date().getFullYear().toString();
2724
});
2825

29-
eleventyConfig.addShortcode('eleventyVersion', function () {
30-
return `Eleventy ${eleventyVersion}`;
31-
});
32-
3326
eleventyConfig.addFilter('formatDateTime', function (date) {
3427
return dateFormatter.format(date);
3528
});

src/discord.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
layout: prose
3+
title: Discord
4+
---
5+
6+
# Discord
7+
8+
We manage a Discord community to share resources from events, announcements,
9+
and discuss JavaScript and web development topics. Join to network and keep the
10+
conversations going outside the scheduled events.
11+
12+
<a
13+
href="https://javascriptmn-discord-invite-bot.brianmitchl.workers.dev"
14+
class="block text-center text-xl text-white font-semibold no-underline border-2 border-black p-4 bg-[#5865F2] hover:underline">
15+
Join the Discord &rarr;
16+
</a>
17+
18+
## But What Happened to the Slack Team!?
19+
20+
Discord is in, Slack is out.
21+
We created the Discord server in August 2022, replacing the Slack team we've
22+
managed since January 2016.

src/globals/actionLinks.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"text": "RSVP"
55
},
66
{
7-
"href": "https://javascriptmn-slack.herokuapp.com",
8-
"text": "Join our Slack"
7+
"href": "/discord/",
8+
"text": "Join the Discord"
99
},
1010
{
1111
"href": "https://www.youtube.com/channel/UC4DA_d8mD-14ZSBvIb1jmXg",

src/globals/site.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"text": "YouTube"
4545
},
4646
{
47-
"href": "https://javascriptmn-slack.herokuapp.com/",
48-
"text": "Slack"
47+
"href": "/discord/",
48+
"text": "Discord"
4949
},
5050
{
5151
"href": "https://github.com/JavaScriptMN/",

src/includes/layouts/base.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<meta name="generator" content="{% eleventyVersion %}">
7+
<meta name="generator" content="{{ eleventy.generator }}">
88
<meta
99
name="description"
1010
content="{{ description if description else site.description }}"

0 commit comments

Comments
 (0)