mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-04-13 16:19:33 +03:00
Changes icons links to point to GitHub
This commit is contained in:
parent
b1ddacbe49
commit
75b7b2b05f
566
index.html
566
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";
|
filePath = "../icons/" + fileName + ".svg";
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var svg = fs.readFileSync(filePath, 'utf8');
|
var svg = fs.readFileSync(filePath, 'utf8');
|
||||||
main += "\n<li style=\"background-color:#" + source.icons[i].hex + "\"><a href=\"https://simpleicons.org/icons/" + fileName + ".svg\" class=\"icon--link\">" + svg + "<span class=\"tile-name\">" + source.icons[i].title + "</span></a>" + "<span class=\"hex\">#" + source.icons[i].hex + "</span></li>";
|
main += "\n<li style=\"background-color:#" + source.icons[i].hex + "\"><a href=\"https://github.com/danleech/simple-icons/blob/gh-pages/icons/" + fileName + ".svg\" class=\"icon--link\">" + svg + "<span class=\"tile-name\">" + source.icons[i].title + "</span></a>" + "<span class=\"hex\">#" + source.icons[i].hex + "</span></li>";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Put all content together and export to index.html
|
// Put all content together and export to index.html
|
||||||
|
Loading…
Reference in New Issue
Block a user