mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
feat(sharing): Pretty Tweet button for level up
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user