orionjs / orioncms-examples

Example webapp made with orion
http://orion-example.meteor.com
38 stars 26 forks source link

How to use dictionary in head.html #2

Closed loongmxbt closed 9 years ago

loongmxbt commented 9 years ago

By default, there is a empty <title></title> in front of the head.html title tag. So there is no page title occurs. I wonder how does the empty title tag occur?

And if I use {{dict 'siteTitle' 'xxx'}}, the head.html displays it directly without processing it.

How to define siteTitle and siteDesc dictionaries in head.html? Thanks!

nicolaslopezj commented 9 years ago

Check this https://github.com/madeby-nicolaslopezj/fran/blob/master/routes.js#L7

loongmxbt commented 9 years ago

Got it ! First meteor add manuelschoebel:ms-seo. Then add afterAction function to set metas.

nicolaslopezj commented 9 years ago

Yeah!