Skip to content
Permalink
Browse files

fixed /slack-link bug; closes #115

  • Loading branch information...
Steve Krouse
Steve Krouse committed Sep 9, 2019
1 parent 96488e6 commit f97bf6b43998aaafcfe9b848e6405f7c5cd46441
Showing with 14 additions and 7 deletions.
  1. +12 −5 404.md
  2. +2 −2 about.md
17 404.md
@@ -41,13 +41,20 @@ const moved = {
'/drafts/frp': '/papers/comprehensible-frp',
'/notes/conal-elliot': '/notes/conal-elliott',
'/drafts/dctp': '/essays/dctp',
'slack': '/community',
'slack-link': 'https://join.slack.com/t/futureofcoding/shared_invite/enQtNjk1NDc2MTkzNjE4LWFjYTY2NDU1ODI1MTI5M2MwYjZlZTk4OTU5NTM1YTRiMDEwODZhN2Y3OWNhN2VmZDU4YmJiZjlhYTFjYmJhZGQ',
'slack-readme': '/community'
'/slack-link': 'https://join.slack.com/t/futureofcoding/shared_invite/enQtNjk1NDc2MTkzNjE4LWFjYTY2NDU1ODI1MTI5M2MwYjZlZTk4OTU5NTM1YTRiMDEwODZhN2Y3OWNhN2VmZDU4YmJiZjlhYTFjYmJhZGQ',
'/slack-readme': '/community',
'/slack': '/community'
}

const movedKey = Object.keys(moved).find(url => window.location.pathname.includes(url))
movedKey && window.location.replace(moved[movedKey])
const movedKeyExact = Object.keys(moved).find(url => window.location.pathname === url)
if (movedKeyExact) {
window.location.replace(moved[movedKeyExact])
} else {
const movedKey = Object.keys(moved).find(url => window.location.pathname.includes(url))
if (movedKey) {
window.location.replace(moved[movedKey])
}
}

// futureofcoding.org/epsiodes/1 --> futureofcoding.org/epsiodes/001
const episodeNumberMatch = /\/episodes\/(\d+)/.exec(window.location.pathname)
@@ -4,9 +4,9 @@ title: About

<h1>About</h1>

Future of Coding is a [community](/slack), [podcast](/episodes), and [research project](/log) organized by Steve Krouse.
Future of Coding is a [community](/community), [podcast](/#episodes), and [research project](/log) organized by Steve Krouse.

The community lives on Slack: you can [join here](/slack) and [learn more here](slack-readme). The podcast alternates between interviews with programming language experts and reflections on my own research journey. My research is focused on building an open-source programming language.
The community lives on Slack: you can [learn more and join here](/community). The podcast alternates between interviews with programming language experts and reflections on my own research journey. My research is focused on building an open-source programming language.

This work is funded by [repl.it](https://repl.it) and my generous patrons. If you find this work valuable, [please consider supporting](https://patreon.com/stevekrouse).

0 comments on commit f97bf6b

Please sign in to comment.
You can’t perform that action at this time.