Module: MicrodataHelper
- Defined in:
- app/helpers/microdata_helper.rb
Instance Method Summary collapse
- #render_about_company_json_ld ⇒ Object
- #render_about_us_json_ld ⇒ Object
- #render_breadcrubs_json_ld ⇒ Object
- #render_post_json_ld ⇒ Object
Instance Method Details
#render_about_company_json_ld ⇒ Object
10 11 12 13 14 |
# File 'app/helpers/microdata_helper.rb', line 10 def render_about_company_json_ld content_tag :script, type: 'application/ld+json' do render partial: 'shared/json_microdata/about_company', formats: [:json] end end |
#render_about_us_json_ld ⇒ Object
4 5 6 7 8 |
# File 'app/helpers/microdata_helper.rb', line 4 def render_about_us_json_ld content_tag :script, type: 'application/ld+json' do render partial: 'shared/json_microdata/about_us', formats: [:json] end end |
#render_breadcrubs_json_ld ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'app/helpers/microdata_helper.rb', line 22 def render_breadcrubs_json_ld = content_tag :script, type: 'application/ld+json' do render partial: 'shared/json_microdata/breadcrumbs', formats: [:json], locals: { breadcrumbs: } end end |
#render_post_json_ld ⇒ Object
16 17 18 19 20 |
# File 'app/helpers/microdata_helper.rb', line 16 def render_post_json_ld content_tag :script, type: 'application/ld+json' do render partial: 'shared/json_microdata/blog', formats: [:json] end end |