In China, for various reasons, the page access speed on GitHub Pages is very slow.
Tried to use Cloudflare, but still no good access speed for mainland China. Recently I discovered that
jsDelivr provides a global CDN service, it supports CDN for GitHub files, and the access speed is very good.
So I want to know if it is possible to replace the path of static resources (such as JS, CSS, images, etc.) when Hugo renders.
For example, the
! [dog_img] (dog.png)
Replaced in the generated page
https://cdn.jsdelivr.net/gh/user/repo@version/dog.png
In addition, replace files such as JS with corresponding paths
https://cdn.jsdelivr.net/gh/jquery/jquery@3.2.1/dist/jquery.min.js
After this operation is realized, I believe that more people will join Hugo’s ranks.