Question

I'm trying to host my Pelican-powered blog on Github pages. The source code is here: https://github.com/garudareiga/devblog

When I use the URL http://garudareiga.github.io/devblog, the site shows without theme. However, if I deploy on heroku (http://raydevblog.herokuapp.com) or open with localhost:8000, the site show with theme.

I could not figure out why?

Was it helpful?

Solution

The file does not exist http://garudareiga.github.io/theme/css/main.css I think it is necessary to checkin on github

Edited You need to change the file index.html
Of <link rel="stylesheet" href="/theme/css/main.css">
To <link rel="stylesheet" href="theme/css/main.css">
And all links removes "/" start

Otherwise he will for http://garudareiga.github.io instead of http://garudareiga.github.io/devblog/

http://www.coffeecup.com/help/articles/absolute-vs-relative-pathslinks/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top