mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig.space.git
synced 2025-12-13 16:26:50 +00:00
Replace old shoutout URL
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
"instagramUrl": "https://www.instagram.com/einundzwanzig_podcast",
|
||||
"shopUrl": "https://einundzwanzig.shop/",
|
||||
"soundcloudUrl": "https://soundcloud.com/einundzwanzig_beats",
|
||||
"shoutoutUrl": "https://shoutout.einundzwanzig.space/",
|
||||
"tallycoinUrl": "https://tallyco.in/s/zfxqtu/",
|
||||
"shoutoutUrl": "https://shoutout.einundzwanzig.space",
|
||||
"tallycoinUrl": "https://tallyco.in/s/zfxqtu",
|
||||
"youtubeUrl": "https://www.youtube.com/c/EinundzwanzigPodcast",
|
||||
"spotifyUrl": "https://open.spotify.com/show/10408JFbE1n8MexfrBv33r",
|
||||
"appleUrl": "https://podcasts.apple.com/de/podcast/einundzwanzig-der-bitcoin-podcast/id1488229907",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const { decode, encode } = require('html-entities')
|
||||
const meta = require('./content/meta.json')
|
||||
|
||||
// configure markdown-it
|
||||
const transformer = require('jstransformer')
|
||||
@@ -16,7 +17,7 @@ mdTransformer.render = str => renderMd(str, config)
|
||||
|
||||
// replacements
|
||||
const replacements = str => {
|
||||
return str && str.replace(/<\/?u>/g, '')
|
||||
return str && str.replace(/<\/?u>/g, '').replace(meta.tallycoinUrl, meta.shoutoutUrl)
|
||||
}
|
||||
|
||||
const stripHTML = str => {
|
||||
|
||||
Reference in New Issue
Block a user