Skip to content

Commit

Permalink
refactor: use direct urls for icons table
Browse files Browse the repository at this point in the history
  • Loading branch information
ixrzr committed Dec 28, 2024
1 parent 8e0d27d commit 0ddfa7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ router.get("/icons/table", async (_req: Request, res: Response) => {
const id = file.replace(".svg", "");
const aliases = short_names_reverse[id] ? short_names_reverse[id].join(", ") : "";
const alias = aliases ? `\`${aliases}\`` : "-";
table += `| \`${id}\` | <img src="https://skills-icons.vercel.app/api/icons?i=${id}" /> | ${alias} |\n`;
table += `| \`${id}\` | <img src="./icons/${id}.svg" width="48" /> | ${alias} |\n`;
}

res.setHeader("Content-Type", "text/markdown");
Expand Down

0 comments on commit 0ddfa7a

Please sign in to comment.