Add meta descriptions for new pages

This commit is contained in:
Andrew Miner
2016-04-05 21:41:47 -07:00
parent 59cc962cc0
commit d47f174848
5 changed files with 25 additions and 9 deletions
@@ -34,6 +34,14 @@ module.exports = class TutorialPageController extends PageController
# PageController Overrides #####################################################################
getMetaDescription: ->
return unless @_model?
mod = @_modPack.getMod @_model.modSlug
return unless mod?
return c.text.tutorialDescription name:@_model.name, mod:mod.name
getTitle: ->
return null unless @model?
return @model.name