Replace old shoutout URL

This commit is contained in:
Dennis Reimann
2023-09-23 11:52:10 +02:00
parent 0bff8d6c9e
commit d4aa51bd1f
2 changed files with 4 additions and 3 deletions

View File

@@ -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",

View File

@@ -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 => {