1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-24 06:03:10 +02:00

Merge pull request #109 from twbs/callout-if

re-work callout tag conditional
This commit is contained in:
Mark Otto
2015-04-24 15:05:57 -07:00

View File

@@ -6,12 +6,11 @@ module Jekyll
def initialize(tag_name, type, tokens) def initialize(tag_name, type, tokens)
super super
@type = type type.strip!
if type == "danger" if %w(info danger warning).include?(type)
@type = "danger" @type = type
elsif type == "warning" else
@type = "warning" puts "#{type} callout not supported. Defaulting to info"
elsif type == "info"
@type = "info" @type = "info"
end end
end end