Relative links fix

Relative links to css, js, and image files in the header and footer does not work for markdown files in sub-folders. This patch fixes it.