Sha256: 96391283d3737173a8e36e547e6e779c51ce77c7ede3d13987e2c46e3b6bf26f

Contents?: true

Size: 390 Bytes

Versions: 1

Compression:

Stored size: 390 Bytes

Contents

module TopHat
  module RobotsHelper

    def noindex(descriptor='robots')
      tag(:meta, :name => descriptor, :content => 'noindex')
    end
    
    def nofollow(descriptor='robots')
      tag(:meta, :name => descriptor, :content => 'nofollow')
    end
    
    def canonical(path=nil)
      if path
        tag(:link, :rel => 'canonical', :href => path)
      end
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tophat-1.2.0 lib/tophat/robots.rb