diff options
| author | Mark Otto <[email protected]> | 2015-04-24 15:05:57 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2015-04-24 15:05:57 -0700 |
| commit | 20543d546202de8fbad13c7d0ab4a1fc19cd13b5 (patch) | |
| tree | 425b9d1fee5bd944e52e8e7e7c8a9d731aaf7afe /docs | |
| parent | 4c3c402b0ec9295ac4630d3583e592a21264582e (diff) | |
| parent | 58c208ec73837925f63a5cd63f1766502a565d84 (diff) | |
| download | bootstrap-20543d546202de8fbad13c7d0ab4a1fc19cd13b5.tar.xz bootstrap-20543d546202de8fbad13c7d0ab4a1fc19cd13b5.zip | |
Merge pull request #109 from twbs/callout-if
re-work callout tag conditional
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/_plugins/callout.rb | 11 |
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 |
