Module: MicrodataHelper

Defined in:
app/helpers/microdata_helper.rb

Instance Method Summary collapse

Instance Method Details

#render_about_company_json_ldObject



10
11
12
13
14
# File 'app/helpers/microdata_helper.rb', line 10

def render_about_company_json_ld
   :script, type: 'application/ld+json' do
    render partial: 'shared/json_microdata/about_company', formats: [:json]
  end
end

#render_about_us_json_ldObject



4
5
6
7
8
# File 'app/helpers/microdata_helper.rb', line 4

def render_about_us_json_ld
   :script, type: 'application/ld+json' do
    render partial: 'shared/json_microdata/about_us', formats: [:json]
  end
end

#render_breadcrubs_json_ldObject



22
23
24
25
26
27
28
29
# File 'app/helpers/microdata_helper.rb', line 22

def render_breadcrubs_json_ld
  breadcrumbs = find_breadcrumbs

   :script, type: 'application/ld+json' do
    render partial: 'shared/json_microdata/breadcrumbs', formats: [:json],
           locals: { breadcrumbs: breadcrumbs }
  end
end

#render_post_json_ldObject



16
17
18
19
20
# File 'app/helpers/microdata_helper.rb', line 16

def render_post_json_ld
   :script, type: 'application/ld+json' do
    render partial: 'shared/json_microdata/blog', formats: [:json]
  end
end