Sha256: 4cca86cdd63983a94b4e8daea048d16be99f53f8c9a0b5310cfbddda9d3b41f3
Contents?: true
Size: 746 Bytes
Versions: 1
Compression:
Stored size: 746 Bytes
Contents
module TopHat module RobotsHelper DEFAULT_DESCRIPTOR = 'robots' def noindex(descriptor=nil) if descriptor TopHat.current['noindex'] = descriptor || DEFAULT_DESCRIPTOR else descriptor = TopHat.current['noindex'] || DEFAULT_DESCRIPTOR end tag(:meta, :name => descriptor, :content => 'noindex') end def nofollow(descriptor=nil) if descriptor TopHat.current['nofollow'] = descriptor || DEFAULT_DESCRIPTOR else descriptor = TopHat.current['nofollow'] || DEFAULT_DESCRIPTOR end tag(:meta, :name => descriptor, :content => 'nofollow') end def canonical(path=nil) tag(:link, :rel => 'canonical', :href => path) if path end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tophat-2.2.0 | lib/tophat/robots.rb |