File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,10 @@ mixin badge-npm(name)
9
9
mixin badge-version(version )
10
10
//- probably want different colors for different versions
11
11
a( href ='http://nodejs.org/download/' )
12
- + badge('/badge/node.js->=_' + version + '-' + (version === ' 0.11' ? ' orange' : version === ' 0.10' ? ' green' : ' brightgreen' ))
12
+ if (version)
13
+ + badge('/badge/node.js->=_' + version + '-' + (version === ' 0.11' ? ' orange' : version === ' 0.10' ? ' green' : ' brightgreen' ))
14
+ else
15
+ + badge('/badge/node.js-N%2FA-lightgrey' )
13
16
14
17
mixin badge-david(repo )
15
18
a( href ='https://david-dm.org/' + repo)
Original file line number Diff line number Diff line change @@ -27,4 +27,5 @@ mixin project(project)
27
27
a( title =project .description , href ='https://github.com/' + project .repo ) = project .name
28
28
29
29
mixin maintainer(person )
30
- a( href ='https://github.com/' + person .github ) = person .name
30
+ if typeof (person) === ' object' && person != null
31
+ a( href ='https://github.com/' + person .github ) = person .name
You can’t perform that action at this time.
0 commit comments