apas / athena

Minimalist static blog generator written in Python
https://apas.github.io/athena/
339 stars 23 forks source link

Problem with relative URL #16

Closed cuchoi closed 5 years ago

cuchoi commented 5 years ago

I uploaded the build directory to mywebsite.com/blog, and instead of trying to find the static files in mywebsite.com/blog/static it looks for mywebsite.com/static.The same happens with the posts and pages (looks for /posts instead of /blog/posts), do you know what could I have done wrong?

cuchoi commented 5 years ago

I only needed to add FREEZER_BASE_URL = "http://www. mywebsite.com/blog" to athena.py

apas commented 5 years ago

Good catch. Totally forgot to mention that in the documentation. Fixed code and documentation accordingly.