Sha256: 058623da7a9ba89c44b05f0c90ba57f1e6bbc7491d1a79963dc282e5a3981194

Contents?: true

Size: 360 Bytes

Versions: 2

Compression:

Stored size: 360 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)
      tag(:link, :rel => 'canonical', :href => path) if path
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tophat-1.3.1 lib/tophat/robots.rb
tophat-1.3.0 lib/tophat/robots.rb