mirror of https://github.com/twbs/bootstrap.git
				
				
				
			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…
	
		Reference in New Issue