mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-30 22:52:24 +01:00
Merge pull request #109 from twbs/callout-if
re-work callout tag conditional
This commit is contained in:
commit
20543d5462
@ -6,12 +6,11 @@ module Jekyll
|
||||
|
||||
def initialize(tag_name, type, tokens)
|
||||
super
|
||||
@type = type
|
||||
if type == "danger"
|
||||
@type = "danger"
|
||||
elsif type == "warning"
|
||||
@type = "warning"
|
||||
elsif type == "info"
|
||||
type.strip!
|
||||
if %w(info danger warning).include?(type)
|
||||
@type = type
|
||||
else
|
||||
puts "#{type} callout not supported. Defaulting to info"
|
||||
@type = "info"
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user