aboutsummaryrefslogtreecommitdiff
path: root/docs/_plugins
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2015-04-25 23:53:25 -0700
committerMark Otto <[email protected]>2015-04-25 23:53:25 -0700
commite815696dacf5fa33e0f75c3b3f433ad90e3e417a (patch)
treeed53fdaae2d66828dd3d857816a08d4e65726ea4 /docs/_plugins
parent3117c98f13af2124bed8523275cd83d4afd4edc6 (diff)
parent20543d546202de8fbad13c7d0ab4a1fc19cd13b5 (diff)
downloadbootstrap-e815696dacf5fa33e0f75c3b3f433ad90e3e417a.tar.xz
bootstrap-e815696dacf5fa33e0f75c3b3f433ad90e3e417a.zip
Merge branch 'v4' of https://github.com/twbs/derpstrap into v4
Diffstat (limited to 'docs/_plugins')
-rw-r--r--docs/_plugins/callout.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/docs/_plugins/callout.rb b/docs/_plugins/callout.rb
index 29ecbc99d..536ca588e 100644
--- a/docs/_plugins/callout.rb
+++ b/docs/_plugins/callout.rb
@@ -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