1
0
Fork 0
mirror of https://github.com/homarr-labs/dashboard-icons.git synced 2025-06-27 23:10:47 +02:00

🔀 Merge Favour CDN image URLs over GitHub ()

* Anchor each icon image to CDN

Signed-off-by: bgh-github <99472455+bgh-github@users.noreply.github.com>

* Adjust icon download instructions/examples

Signed-off-by: bgh-github <99472455+bgh-github@users.noreply.github.com>

---------

Signed-off-by: bgh-github <99472455+bgh-github@users.noreply.github.com>
This commit is contained in:
bgh-github 2023-04-19 01:34:03 +10:00 committed by GitHub
parent 4eef36b26a
commit c4bfa50a72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions
config

View file

@ -7,7 +7,7 @@ path = root / "../ICONS.md"
def generate_img_tag(file):
return f'<img src="png/{file.name}" alt="{file.stem}" height="50">'
return f'<a href="https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/{file.name}"><img src="https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/{file.name}" alt="{file.stem}" height="50"></a>'
imgs = sorted(Path("./png").glob("*.png"))