简体   繁体   中英

GitHub Pages + Jekyll + Bootstrap + CDN question

I'm new to GitHub Pages and Jekyll, and moving my blog https://sypalo.com to it.

I decided to use CDN for Twitter Bootstrap, so just copied example links from official website to the default.html template which is in the https://github.com/SergeySypalo/sergeysypalo/blob/master/_site/_layouts/default.html

But when my site is generated, Jekyll creates a local copy of css on the fly, so instead of pointing to the CDN, it creates a link to /assets/styles.css file, but styles are not applied.

Also, at the default.html page bottom, instead of 3 JavaScript files on CDN I got only one unknown to me pointing to CloudFlare.

What I have to do to bypass Jekyll processing links to the files located on CDN?

问题出在文件夹结构中,查看我的GitHub仓库并随意为自己分叉和调整。

The problem was in the folder structure. I put my whole website in the _site subfolder (you may notice that from the path I provided in the question). The website generated correctly after I moved all of its content to the root folder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM