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 (#372)
* 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:
parent
4eef36b26a
commit
c4bfa50a72
2 changed files with 5 additions and 5 deletions
config
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue