Add meta descriptions for new pages
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
*.log
|
*.log
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.sass-cache
|
.sass-cache
|
||||||
|
.tm_properties
|
||||||
aws.config
|
aws.config
|
||||||
build
|
build
|
||||||
deploy
|
deploy
|
||||||
|
|||||||
@@ -23,6 +23,9 @@ module.exports = class BrowsePageController extends PageController
|
|||||||
|
|
||||||
# PageController Overrides #####################################################################
|
# PageController Overrides #####################################################################
|
||||||
|
|
||||||
|
getMetaDescription: ->
|
||||||
|
return c.text.browseDescription()
|
||||||
|
|
||||||
getTitle: ->
|
getTitle: ->
|
||||||
return "Browse"
|
return "Browse"
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,9 @@ module.exports = class NewsPageController extends PageController
|
|||||||
|
|
||||||
# PageController Overrides #####################################################################
|
# PageController Overrides #####################################################################
|
||||||
|
|
||||||
|
getMetaDescription: ->
|
||||||
|
return c.text.newsDescription()
|
||||||
|
|
||||||
getTitle: ->
|
getTitle: ->
|
||||||
return "News"
|
return "News"
|
||||||
|
|
||||||
|
|||||||
@@ -34,6 +34,14 @@ module.exports = class TutorialPageController extends PageController
|
|||||||
|
|
||||||
# PageController Overrides #####################################################################
|
# 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: ->
|
getTitle: ->
|
||||||
return null unless @model?
|
return null unless @model?
|
||||||
return @model.name
|
return @model.name
|
||||||
|
|||||||
@@ -116,11 +116,12 @@ exports.text = text = {}
|
|||||||
text.browseDescription = _.template 'Browse through complete item listings for over a dozen top mods and use the interactive crafting planner for step-by-step instructions'
|
text.browseDescription = _.template 'Browse through complete item listings for over a dozen top mods and use the interactive crafting planner for step-by-step instructions'
|
||||||
text.configDescription = _.template 'Configure the interactive crafting planner for your exact modpack and get step-by-step instructions for any item in your world'
|
text.configDescription = _.template 'Configure the interactive crafting planner for your exact modpack and get step-by-step instructions for any item in your world'
|
||||||
text.craftDescription = _.template 'Build anything in your Minecraft mod pack with a full list of materials and step-by-step instructions using our interactive crafting planner'
|
text.craftDescription = _.template 'Build anything in your Minecraft mod pack with a full list of materials and step-by-step instructions using our interactive crafting planner'
|
||||||
text.homeDescription = _.template 'Find everything you need to know about your Minecraft mod pack and use the interactive crafting planner for step-by-step instructions and full lists of materials'
|
text.newsDescription = _.template 'Find everything you need to know about your Minecraft mod pack and use the interactive crafting planner for step-by-step instructions and full lists of materials'
|
||||||
text.itemDescription = _.template 'Make <%= itemName %> and the rest of <%= modName %> easy and use the interactive crafting planner for step-by-step instructions'
|
text.itemDescription = _.template 'Make <%= itemName %> and the rest of <%= modName %> easy and use the interactive crafting planner for step-by-step instructions'
|
||||||
text.modDescription = _.template 'Make <%= modName %> easy with tutorials, videos, and a full item listing along with an interactive crafting planner for step-by-step instructions'
|
text.modDescription = _.template 'Make <%= modName %> easy with tutorials, videos, and a full item listing along with an interactive crafting planner for step-by-step instructions'
|
||||||
text.title = _.template 'Minecraft Crafting Guide'
|
text.title = _.template 'Minecraft Crafting Guide'
|
||||||
text.titleWithText = _.template '<%= text %> | Minecraft Crafting Guide'
|
text.titleWithText = _.template '<%= text %> | Minecraft Crafting Guide'
|
||||||
|
text.tutorialDescription = _.template 'Learn about <%= name %> in <%= mod %> and use the interactive crafting planner to get ready for your build!'
|
||||||
|
|
||||||
exports.url = url = {}
|
exports.url = url = {}
|
||||||
url.crafting = _.template "/craft/<%= inventoryText %>"
|
url.crafting = _.template "/craft/<%= inventoryText %>"
|
||||||
|
|||||||
Reference in New Issue
Block a user