Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
20543d54
Commit
20543d54
authored
Apr 24, 2015
by
Mark Otto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #109 from twbs/callout-if
re-work callout tag conditional
parents
4c3c402b
58c208ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
docs/_plugins/callout.rb
docs/_plugins/callout.rb
+5
-6
No files found.
docs/_plugins/callout.rb
View file @
20543d54
...
@@ -6,12 +6,11 @@ module Jekyll
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment