Title / Description
Code module SeoHelper def title= title @title = title end def title if @title.blank? Settings.title.home else [@title, Settings.title.simple].join ' - ' end end def keywords= keywords @keywords = keywords end def keywords if @keywords.blank? Settings.keywords else @keywords end end def description= description @description = description end def description if @description.blank? Settings.description else @description end end def canonical_link_tag path tag :link, :rel => 'canonical', :href => path end end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code