mirror of
https://github.com/simple-icons/simple-icons.git
synced 2024-12-26 01:13:41 +02:00
Simplifies download links
This commit is contained in:
parent
08a49f46aa
commit
2faa7aaf93
572
index.html
572
index.html
File diff suppressed because one or more lines are too long
@ -95,7 +95,7 @@ for (var i = 0; i < source.icons.length; i++) {
|
||||
filePath = "../icons/" + fileName + ".svg";
|
||||
var fs = require('fs');
|
||||
var svg = fs.readFileSync(filePath, 'utf8');
|
||||
main += "\n<li style=\"background-color:#" + source.icons[i].hex + "\"><a href=\"/icons/" + fileName + ".svg\" class=\"icon--link\" download=\"/icons/" + fileName + ".svg\">" + svg + "<h2>" + source.icons[i].title + "</h2></a>" + "<span>#" + source.icons[i].hex + "</span></li>";
|
||||
main += "\n<li style=\"background-color:#" + source.icons[i].hex + "\"><a href=\"/icons/" + fileName + ".svg\" class=\"icon--link\" download>" + svg + "<h2>" + source.icons[i].title + "</h2></a>" + "<span>#" + source.icons[i].hex + "</span></li>";
|
||||
}
|
||||
|
||||
// Put all content together and export to index.html
|
||||
|
Loading…
Reference in New Issue
Block a user