Skip to content
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

Base url #30

Open
damc opened this issue Feb 15, 2021 · 2 comments
Open

Base url #30

damc opened this issue Feb 15, 2021 · 2 comments

Comments

@damc
Copy link

damc commented Feb 15, 2021

My blog is in some folder, so the url of my blog is:

https://xyz.com/something

instead of just https://xyz.com

The problem is that all of the links on the website lead to https://xyz.com/post_name instead of https://xyz.com/something/post_name . For that reason CSS and links don't work.

I tried to set "baseUrl" config to '/something', but that didn't work. It worked in other themes like "Minima" for example.

Can I get this theme to work with a blog in a folder? What is the best way to do that?

@niklasbuschmann
Copy link
Owner

This should work exactly the same with as with "Minima". Both themes use the relative_url liquid filter.

Have you tried using baseurl instead of baseUrl?

@damc
Copy link
Author

damc commented Feb 19, 2021

Yes, you're right. I should have used baseurl instead of baseUrl. Problem solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants