I have just started working with Jekyll. As a front-end developer i have to create a lot of static pages for web applications before they go into development.
I am t
This is fundamentally impossible with Jekyll, because the index page is a different hierarchy (/index) and each blog post is a nested URL (/posts/about). So the URLs for things like CSS and Javascript will have to be different for each page. For a post it should be "../css/..." and for index it should be "./css/". That is not possible without a running server.
So here are some options for you:
Pass "." as the base url. So your styles will become './css/'. Now your index page will work fine, but blog posts won't (they need '../')
jekyll serve --baseurl .
Pass the current folder as base URL. Now you don't need a server, but your _site folder is tied to your machine's folder, and not exactly portable.
jekyll serve --baseurl $(pwd)
Use a lightweight server. This will start a simple server on the current folder (so make sure you go into _site folder), so you don't need jekyll to be installed. This is available by default in python, so you don't have to install anything separate, as long as python is installed.
python -m SimpleHTTPServer