mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2024-11-10 07:27:21 +01:00
🚀 Hotlink README icon images to jsDelivr CDN rather than GitHub (#344)
This commit is contained in:
parent
997f8e2631
commit
910a909a4d
2
_ci.py
2
_ci.py
@ -7,7 +7,7 @@ readme_path = root / "README.md"
|
||||
|
||||
|
||||
def generate_img_tag(file):
|
||||
return f'<img src="png/{file.name}" alt="{file.stem}" width="50">'
|
||||
return f'<img src="https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/{file.name}" alt="{file.stem}" width="50">'
|
||||
|
||||
|
||||
imgs = sorted(Path("./png").glob("*.png"))
|
||||
|
Loading…
Reference in New Issue
Block a user