gen-readme: fix no NL before screenshots w/o demo
This commit is contained in:
parent
6b6fa8b7fe
commit
e3bd4df31d
|
|
@ -410,6 +410,7 @@ These are frameworks that do not force you to apply their classes to many elemen
|
|||
A class-light variant of a CSS framework with classes. Made for Ruby on Rails.
|
||||
|
||||
* [Repository](https://github.com/lazaronixon/sass-zero)     
|
||||
|
||||
[](screenshot/sass-zero.png)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -39,18 +39,25 @@ const renderItem = (
|
|||
`[](screenshot/${filename})`
|
||||
).join("\n");
|
||||
|
||||
return `### ${name}\n\n` +
|
||||
(note === "" ? "" : `${note}\n\n`) +
|
||||
(website === "" ? "" : `* [Website](${website})\n`) +
|
||||
(github === ""
|
||||
? ""
|
||||
: `* [Repository](https://github.com/${github})  ` +
|
||||
const lines: string[] = [];
|
||||
lines.push(`### ${name}`, "");
|
||||
if (note !== "") {
|
||||
lines.push(note, "");
|
||||
}
|
||||
if (website !== "") lines.push(`* [Website](${website})`);
|
||||
if (github !== "") {
|
||||
lines.push(
|
||||
`* [Repository](https://github.com/${github})  ` +
|
||||
` ` +
|
||||
` ` +
|
||||
` ` +
|
||||
`\n`) +
|
||||
(demo === "" ? "" : `* [Demo](${demo})\n\n`) +
|
||||
screenshotMarkdown;
|
||||
``,
|
||||
);
|
||||
}
|
||||
if (demo !== "") lines.push(`* [Demo](${demo})`);
|
||||
lines.push("", screenshotMarkdown);
|
||||
|
||||
return lines.join("\n");
|
||||
};
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in New Issue