A guide to upload and run an HTML file on Jsdelivr to look like a website
Aparentely, uploading any image JsDelivr will show. So, when uploading a blank image to GitHub or JsDelivr, you can put HTML source code inside.
- Download the
custom-template.svgfile. - Make new repo.
- Upload that file to your repo.
- Go into the code and put the CSS/JS/HTML code in between the
<[CDATA[ ]>part. - Save Changes.
- Make sure repo is public.
- Go to
cdn.jsdelivr.net/gh/<your-username>/<repo-name>@main/<file-path-to-img-file>. - then your website is done!
- Doesn't work offline, on a file
- To see the code on Github, don't go to
codeorpreviewtab; go toBlametab or edit the code.
- look at another
cdn.jsdelivr.neturl and compare to yours. - Try another server other than
cdn.jsdelivr.net. - look at my other img file.
- that means that it's probably blocked.
dogeub | github (img file running) 2pro12342 | github (guide)