1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-11-26 01:00:27 +02:00

Fixed links (blob not tree)

This commit is contained in:
Dan Leech 2015-10-18 19:48:01 +01:00
parent 3462c83498
commit cb7f835aa9

View File

@ -99,7 +99,7 @@ for (var i = 0; i < source.icons.length; i++) {
console.log(source.icons[i].title + ", sat = " + source.icons[i].saturation);
var fs = require('fs');
var svg = fs.readFileSync(filePath, 'utf8');
main += "\t\t\t<li style=\"background-color:#" + source.icons[i].hex + "\"><a href=\"https://github.com/danleech/simpleicons.org/tree/gh-pages/icons/" + fileName + ".svg\">" + svg + source.icons[i].title + "<br><span class=\"hex\">#" + source.icons[i].hex + "</span></a></li>\n";
main += "\t\t\t<li style=\"background-color:#" + source.icons[i].hex + "\"><a href=\"https://github.com/danleech/simpleicons.org/blob/gh-pages/icons/" + fileName + ".svg\">" + svg + source.icons[i].title + "<br><span class=\"hex\">#" + source.icons[i].hex + "</span></a></li>\n";
}
// Put all content together and export to index.html