summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/blogs/HubView.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-07-14 00:37:22 +0200
committerJules Laplace <julescarbon@gmail.com>2019-07-14 00:37:22 +0200
commiteed7b4e881a1b6f6b3297a459378fec9232950bb (patch)
tree1b220ced9abc1be15b0c085d13d4812ed6645c42 /StoneIsland/www/js/lib/blogs/HubView.js
parent570f72c13f8eab87cc72edb41c3a1b6b05c367f8 (diff)
clean hub titles
Diffstat (limited to 'StoneIsland/www/js/lib/blogs/HubView.js')
-rwxr-xr-xStoneIsland/www/js/lib/blogs/HubView.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/blogs/HubView.js b/StoneIsland/www/js/lib/blogs/HubView.js
index c12e656f..e06faf44 100755
--- a/StoneIsland/www/js/lib/blogs/HubView.js
+++ b/StoneIsland/www/js/lib/blogs/HubView.js
@@ -57,6 +57,8 @@ var HubView = ScrollableView.extend({
.replace(/{{date}}/, moment(row.date).format("MM.DD.YYYY"))
.replace(/{{title}}/, row.title)
.replace(/{{subtitle}}/, row.subtitle)
+ .replace(/{{cleantitle}}/, stonewash(row.title))
+ .replace(/{{cleansubtitle}}/, stonewash(row.subtitle))
.replace(/{{link}}/, row.link)
.replace(/{{body}}/, row.body.replace(/\n/g, "<br>"))
var $t = $(t)