Initial commit
This commit is contained in:
29
_plugins/drops/breadcrumb_item.rb
Normal file
29
_plugins/drops/breadcrumb_item.rb
Normal file
@@ -0,0 +1,29 @@
|
||||
module Jekyll
|
||||
module Drops
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user