_plugins/breadcrumbs.rb in fenton-jekyll-boilerplate-0.0.2 vs _plugins/breadcrumbs.rb in fenton-jekyll-boilerplate-0.0.3
- old
+ new
@@ -1,5 +1,32 @@
-require_relative 'breadcrumbs/breadcrumb_item.rb'
+module Jekyll
+ module Breadcrumbs
+ class BreadcrumbItem < Liquid::Drop
+ extend Forwardable
+
+ def initialize(side)
+ @side = side
+ end
+
+ def position
+ @side[:position]
+ end
+
+ def title
+ @side[:title]
+ end
+
+ def url
+ @side[:url]
+ end
+
+ def rootimage
+ @side[:root_image]
+ end
+
+ end
+ end
+end
module Jekyll
module Breadcrumbs
@@config = {}
@@siteAddress = ""
\ No newline at end of file