Sha256: f5518dcdbeb7622f50aeb08547d3becf9edbed7c3954c6875214a4e046709afe

Contents?: true

Size: 636 Bytes

Versions: 3

Compression:

Stored size: 636 Bytes

Contents

module ContentHelper
  def content_meta_tags(object)
    open_graph_tags = { title: object.meta_title,
                        description: object.meta_description,
                        url: object.canonical_url,
                        type: object.meta_type,
                        image: object.opengraph_image_url,
                        updated_time: object.updated_at.to_i }

    set_meta_tags title: object.meta_title,
                  description: object.meta_description,
                  keywords: object.meta_keywords,
                  canonical: object.canonical_url,
                  og: open_graph_tags
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ants-0.3.5 app/helpers/content_helper.rb
ants-0.3.4 app/helpers/content_helper.rb
ants-0.3.3 app/helpers/content_helper.rb