For the last couple of years I’ve had a WordPress blog. Recently I discovered Jekyll and love it, so I want to convert WP -> J. I have been able to do this mostly, though I still haven’t been able to get a lightbox working yet, but that’s not the point of this post just background info.
I have done the development/conversion locally using Gulp to process the css, js & images. I would like to host the Jekyll site at the same hosting I currently have. The converted site does use some gems, one that I wrote is physically in the _plugins directory and others have been installed via the command line.
Now the questions:
1> Hosting: In the _site directory I see no reference to the gems, has their code been “absorbed” into the _site directory? Any documentation I have read so far is either angled towards GitHub hosting or says just upload the contents of the _site directory. Does the hoster need to be Ruby aware?
2> Permalinks: On the WP blog I used the Jekyll equivalent of /:title. Using this in Jekyll puts every post and page in a directory in the root - ugly… I would much prefer to keep posts in one directory and pages in another but keep the same permalink setup. Is this doable? If so how?
3> Page location: Related to the last point, I have all my pages in a _pages directory, but when Jekyll does it’s thing they end up in the root of the _site directory. How do I “move” them into into a “pages” directory and keep the same permalink structure?
4> 404 Page: I have created the 404.html page and it is in the root. When I try to access a no-existing page the 404 does not appear locally. Should it? What do I need to do to “see” it both locally and when I upload the site?