Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Display SVG graphics properly when serving files with WEBrick #88
Conversation
|
jekyll --server cannot be used correctly right now anyway, because the site uses clean urls and jekyll WebRick server doesn't translate urls to filenames. (/en/about -> /en/about.html). So I think it would make sense to fix this problem first. Otherwise adding SVG support won't help so much. Do you have any idea how (or if) it can be done? |
|
Jekyll can generate a directory with a single index.html (en/about -> en/about/index.html) for each page so that those paths would route cleanly without the aid of github's pretty urls. |
|
Isn't there a feature somewhere in WebRick server to handle this gracefully? Most servers allow to do url to filename translation pretty easily. At a first glance, I'd say having a ton of index files seems a bit hackish. It might cause troubles with relative paths and would add a trailing / at the end of all urls. And we should try to avoid changing urls as much as possible. Maybe the answer can be found somewhere in there : |
|
So far from what I read, it seems that it requires patching the WebRick server.. Ugh.. Ok so let's merge your improvement and keep cleanurls as a seperate subject. Thanks! |
turboroot commentedMar 23, 2013
I wanted to make some changes to the site, but letting Jekyll serve the files locally through WEBrick displays broken images. SVGs are not given the correct content-type.
Jekyll's fix seems to be in the next release. This will be a temporary fix.
Hopefully others won't run into the same issue.