run26kimo / breadcrumbs_on_rails-json_ld

JSON-LD plugin for Breadcrumbs on Rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BreadcrumbsOnRails::JsonLd

BreadcrumbsOnRails::JsonLd provides a custom builder for BreadcrumbsOnRails.

Usage

Pass builder: BreadcrumbsOnRails::JsonLd::Builder option to render_breadcrumbs and enclose them with script type="application/ld+json" tag as follows:

<script type="application/ld+json">
  <%= render_breadcrumbs builder: BreadcrumbsOnRails::JsonLd::Builder %>
</script>

Installation

Add this line to your application's Gemfile:

gem 'breadcrumbs_on_rails-json_ld'

And then execute:

$ bundle

Or install it yourself as:

$ gem install breadcrumbs_on_rails-json_ld

TODO

  • Adopt RSpec
  • Add tests

License

The gem is available as open source under the terms of the MIT License.

About

JSON-LD plugin for Breadcrumbs on Rails

License:MIT License


Languages

Language:Ruby 73.5%Language:HTML 19.8%Language:JavaScript 4.1%Language:CSS 2.6%