Add meta descriptions for new pages
This commit is contained in:
@@ -23,6 +23,9 @@ module.exports = class BrowsePageController extends PageController
|
||||
|
||||
# PageController Overrides #####################################################################
|
||||
|
||||
getMetaDescription: ->
|
||||
return c.text.browseDescription()
|
||||
|
||||
getTitle: ->
|
||||
return "Browse"
|
||||
|
||||
|
||||
@@ -18,6 +18,9 @@ module.exports = class NewsPageController extends PageController
|
||||
|
||||
# PageController Overrides #####################################################################
|
||||
|
||||
getMetaDescription: ->
|
||||
return c.text.newsDescription()
|
||||
|
||||
getTitle: ->
|
||||
return "News"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user