-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use relative links #78
Comments
I think I remember some issues with relative links and the validator (or similar) which caused me to switch from relative to absolute links. I'm sorry, this won't change. |
okay, I could partially fix this by removing the BASE_URL in the config :) |
Is there some learning I should add to the README for others in your situation? Maybe you could provide a few lines explaining your approach? Thanks @xeruf |
Sure! If your site resides on the root of your domain, you can easily compile it in a domain-independent way by removing the BASE_URL prefix for the CSS and LOGO path, for example: CSS_URL = '/public_voit.css'
BLOG_LOGO = '/images/public-voit_logo.svg' Then you can use for example caddy to preview the blog locally by issuing |
Thanks, I just linked it in the README. |
The links to the CSS & co, even on the homepage, start with
/
which means you can't easily have a look at the HTML locally by opening the files, you need to spin up a webserver.The text was updated successfully, but these errors were encountered: