1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-24 14:13:06 +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.strip!
if %w(info danger warning).include?(type)
@type = type @type = type
if type == "danger" else
@type = "danger" puts "#{type} callout not supported. Defaulting to info"
elsif type == "warning"
@type = "warning"
elsif type == "info"
@type = "info" @type = "info"
end end
end end