Sha256: a424591739651e4302609fbc9576e868e2e422373b446489680771cebfe295cb

Contents?: true

Size: 507 Bytes

Versions: 9

Compression:

Stored size: 507 Bytes

Contents

module Georgia
  module MetaTagsHelper

    def meta_title title
      site_title = ""
      site_title << "#{title} | " unless title.blank?
      site_title << Georgia.title
      content_tag :title, site_title
    end

    def meta_description description
      return unless description.present?
      tag :meta, name: 'description', content: description
    end

    def meta_keywords keywords
      return unless keywords.present?
      tag :meta, name: 'keywords', content: keywords
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
georgia-0.7.8 app/helpers/georgia/meta_tags_helper.rb
georgia-0.7.7 app/helpers/georgia/meta_tags_helper.rb
georgia-0.7.6 app/helpers/georgia/meta_tags_helper.rb
georgia-0.7.5 app/helpers/georgia/meta_tags_helper.rb
georgia-0.7.4 app/helpers/georgia/meta_tags_helper.rb
georgia-0.7.3 app/helpers/georgia/meta_tags_helper.rb
georgia-0.7.2 app/helpers/georgia/meta_tags_helper.rb
georgia-0.7.1 app/helpers/georgia/meta_tags_helper.rb
georgia-0.7.0 app/helpers/georgia/meta_tags_helper.rb