feat(sharing): Pretty Tweet button for level up

This commit is contained in:
Sabe Jones
2015-10-21 15:23:31 -04:00
parent 1ad6ffd35d
commit 44818882f6
5 changed files with 41 additions and 8 deletions

View File

@@ -18,7 +18,7 @@ router.get('/', i18n.getUserLanguage, locals, function(req, res) {
});
});
// -------- Marketing --------
// -------- Static Pages --------
var pages = ['front', 'privacy', 'terms', 'api', 'features', 'videos', 'contact', 'plans', 'new-stuff', 'community-guidelines', 'old-news', 'press-kit', 'faq'];
@@ -31,6 +31,19 @@ _.each(pages, function(name){
});
});
// -------- Social Media Sharing --------
var shareables = ['level-up'];
_.each(shareables, function(name){
router.get('/social/' + name, i18n.getUserLanguage, locals, function(req, res) {
res.render( 'social/' + name, {
env: res.locals.habitrpg,
marked: require('marked')
});
});
});
// --------- Redirects --------
router.get('/static/extensions', function(req, res) {