开发者

Rails 3 page keywords & description

开发者 https://www.devze.com 2023-02-16 19:35 出处:网络
I have a model Page with additional fields keywords and开发者_Go百科 description for SEO. How to implement the SEO functionality in Rails and add meta tags with keywords and description on every page

I have a model Page with additional fields keywords and开发者_Go百科 description for SEO.

How to implement the SEO functionality in Rails and add meta tags with keywords and description on every page?


You might want to have a look at two plugins:

https://github.com/mokolabs/headliner
https://github.com/lassebunk/metamagic

And read about other SEO techniques for Rails applications here:

http://lassebunk.dk/2011/03/09/rails-seo-pack/


I guess you are storing separate keywords and description for each page in your Page model.

You make a layout that is available for all your pages, that shows instance variables (formatted the way you want them) @keywords and @description.

0

精彩评论

暂无评论...
验证码 换一张
取 消