Sha256: 0e09b2ca62a642671f885a036081f1935351bb33b284c8a5b63dd773e5fc28a5
Contents?: true
Size: 496 Bytes
Versions: 5
Compression:
Stored size: 496 Bytes
Contents
module TopHat module RobotsHelper DEFAULT_DESCRIPTOR = 'robots' def noindex(descriptor=DEFAULT_DESCRIPTOR) descriptor ||= DEFAULT_DESCRIPTOR tag(:meta, :name => descriptor, :content => 'noindex') end def nofollow(descriptor=DEFAULT_DESCRIPTOR) descriptor ||= DEFAULT_DESCRIPTOR 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
tophat-2.1.0 | lib/tophat/robots.rb |
tophat-2.0.0 | lib/tophat/robots.rb |
tophat-1.7.2 | lib/tophat/robots.rb |
tophat-1.7.1 | lib/tophat/robots.rb |
tophat-1.7.0 | lib/tophat/robots.rb |