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

relative links (css/images) not working #11

Open
CThuleHansen opened this issue Jul 13, 2022 · 2 comments
Open

relative links (css/images) not working #11

CThuleHansen opened this issue Jul 13, 2022 · 2 comments

Comments

@CThuleHansen
Copy link

CThuleHansen commented Jul 13, 2022

Hi Chris,

I am trying to get this up and running, but the links are failing me, e.g. css and images.
You can see it here: https://cthulehansen.github.io/blog/
I am serving it from the docs repository.
I believe it might be due to the fact that I am hosting it from the blog repository, at not directly from cthulehansen.github.io

It appears that the header links uses e.g. /images/* whereas the posts link use posts/*, without the leading /. The posts links are working.

I have tried setting the baseUrl to https://cthulehansen.github.io/blog/ and https://cthulehansen.github.io/blog but it does not make a difference.
The network console lists it as well,
where the links probably should be https://cthulehansen.github.io/blog/*
image

Any suggested way to address it? Otherwise I will just correct the template files manually.

Cheers

@CThuleHansen
Copy link
Author

I fixed it by prefixing the links with /blog.

@dino-
Copy link
Contributor

dino- commented Jan 23, 2023

This is happening for me too. This template example site doesn't work out-of-the-box.

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