Commit e2f2cfa1 authored by Thomas Wood's avatar Thomas Wood

Add `bibiliography_list_attributes` and `bibliography_tag_attributes` options

This permits custom attributes to be passed to the bibliography list
such as `reversed` or `start` to permit custom numbering.

See inukshuk#148
parent e3e54fba
......@@ -11,6 +11,8 @@ module Jekyll
'bibliography_group_tag' => 'h2,h3,h4,h5',
'bibliography_list_tag' => 'ol',
'bibliography_item_tag' => 'li',
'bibliography_list_attributes' => {},
'bibliography_item_attributes' => {},
'source' => './_bibliography',
'bibliography' => 'references.bib',
......
......@@ -89,10 +89,12 @@ module Jekyll
config['details_link'], :class => config['details_link_class'])
end
content_tag config['bibliography_item_tag'], reference
content_tag config['bibliography_item_tag'], reference, config['bibliography_item_attributes']
}.join("\n")
content_tag config['bibliography_list_tag'], bibliography, :class => config['bibliography_class']
content_tag config['bibliography_list_tag'], bibliography,
{ :class => config['bibliography_class'] }.merge(config['bibliography_list_attributes'])
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment