Sha256: 1af64330621a761c6d49f6710d4fc2dcafe043b559c0a4875539cfe687513ab7

Contents?: true

Size: 970 Bytes

Versions: 1

Compression:

Stored size: 970 Bytes

Contents

/! meta data
- if params[:page].present? || params[:per].present?
  = tag :link, rel: 'canonical', href: url_for(only_path: false, overwrite_params: nil)
- else
  = tag :link, rel: 'canonical', href: request.base_url + request.path

= raw render_local_meta_tags(@meta_record || @structure)

- unless current_page?(new_order_path)
  - image = 'logo.png'
  - image = Settings.public_image_name unless Settings.public_image_name.blank?
  meta content="#{@post.blank? ? 'website' : 'article'}" property="og:article"
  meta content="#{request.original_url}" property="og:url"
  meta content="#{asset_url(record.try(:picture).try(:url, :content) || image)}" property="og:image"

/! end meta data

- if TranslationCms.json_microdata_enable
  = render_about_company_json_ld
  = render_about_us_json_ld if current_page?('/about-us')
  = render_post_json_ld if @post.present? && @post.is_a?(Post)
  = render_breadcrubs_json_ld if content_for?(:breadcrumbs) && @structure.present?

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/views/shared/_open_graph.html.slim