diff --git a/content/meta.json b/content/meta.json index 6c495aebf66..39f830265f4 100644 --- a/content/meta.json +++ b/content/meta.json @@ -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", diff --git a/helpers.js b/helpers.js index 4e4a4a58a7a..4d84e2030b2 100644 --- a/helpers.js +++ b/helpers.js @@ -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 => {