IIIT-Delhi / byld-website

Static Website for IIIT-Delhi's Software Dev Club Byld
https://iiit-delhi.github.io/byld-website/
8 stars 29 forks source link

Fix broken links #89

Open virresh opened 4 years ago

virresh commented 4 years ago

Seeing the website in broken state for long...

peey commented 4 years ago

This is weird. Were the links to actual pages contain .html from the beginning or did something change?

virresh commented 4 years ago

I suppose it's got to do with the new version of Apache It broke down on update and crippled our dynamic update system due to a stupid renaming of a rule

Probably they also implemented exact matching for URLs

peey commented 4 years ago

Were we relying on rewrites in the hosting server? We shouldn't be doing that. Let me check if there is a way to configure this in jekyll so that the html page produced is hacknight/index.html instead of hacknight.html

virresh commented 4 years ago

I think rewrite is the standard way of doing this : https://stackoverflow.com/questions/1992183/how-to-hide-the-html-extension-with-apache-mod-rewrite

Possible some more syntax changed with newer version though

peey commented 4 years ago

@virresh so another (I believe neater) solution would be to use permalinks in jekyll to direct jekyll about what the page URL should look like.

I added this to front matter of hacknights.md and am trying to test it on my local system but I'm facing problems with ruby. I've been getting the following error and I'm unable to fix it:

Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from http://rubygems.org/

Can you try to see with your jekyll installation if that works? In the meanwhile, let's merge this so links aren't broken on the website.

peey commented 4 years ago

Actually I'll just test out my edits with netlify instead of my local installation.