File tree Expand file tree Collapse file tree 2 files changed +17
-9
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +17
-9
lines changed
Original file line number Diff line number Diff line change @@ -410,6 +410,7 @@ These are frameworks that do not force you to apply their classes to many elemen
410
410
A class-light variant of a CSS framework with classes. Made for Ruby on Rails.
411
411
412
412
* [ Repository] ( https://github.com/lazaronixon/sass-zero ) ![ GitHub stars] ( https://img.shields.io/github/stars/lazaronixon/sass-zero?style=flat-square ) ![ GitHub contributors] ( https://img.shields.io/github/contributors-anon/lazaronixon/sass-zero?style=flat-square ) ![ Last commit] ( https://img.shields.io/github/last-commit/lazaronixon/sass-zero?style=flat-square ) ![ GitHub open issues] ( https://img.shields.io/github/issues-raw/lazaronixon/sass-zero?style=flat-square ) ![ GitHub closed issues] ( https://img.shields.io/github/issues-closed-raw/lazaronixon/sass-zero?style=flat-square )
413
+
413
414
[ ![ sass-zero.png] ( thumbnail/sass-zero.png )] ( screenshot/sass-zero.png )
414
415
415
416
Original file line number Diff line number Diff line change @@ -39,18 +39,25 @@ const renderItem = (
39
39
`[](screenshot/${ filename } )`
40
40
) . join ( "\n" ) ;
41
41
42
- return `### ${ name } \n\n` +
43
- ( note === "" ? "" : `${ note } \n\n` ) +
44
- ( website === "" ? "" : `* [Website](${ website } )\n` ) +
45
- ( github === ""
46
- ? ""
47
- : `* [Repository](https://github.com/${ github } )  ` +
42
+ const lines : string [ ] = [ ] ;
43
+ lines . push ( `### ${ name } ` , "" ) ;
44
+ if ( note !== "" ) {
45
+ lines . push ( note , "" ) ;
46
+ }
47
+ if ( website !== "" ) lines . push ( `* [Website](${ website } )` ) ;
48
+ if ( github !== "" ) {
49
+ lines . push (
50
+ `* [Repository](https://github.com/${ github } )  ` +
48
51
` ` +
49
52
` ` +
50
53
` ` +
51
- `\n` ) +
52
- ( demo === "" ? "" : `* [Demo](${ demo } )\n\n` ) +
53
- screenshotMarkdown ;
54
+ `` ,
55
+ ) ;
56
+ }
57
+ if ( demo !== "" ) lines . push ( `* [Demo](${ demo } )` ) ;
58
+ lines . push ( "" , screenshotMarkdown ) ;
59
+
60
+ return lines . join ( "\n" ) ;
54
61
} ;
55
62
56
63
try {
You can’t perform that action at this time.
0 commit comments