0

I have a _config-dev.yml with the following content:

baseurl: ""
environment: development
url: "https://codespaces_url.app.github.dev/"

When I print {{ site.url }} in the template. This returns: http://0.0.0.0:4000/ so all url's fail.

I'm very confused.

On the production in github pages I use _config.yml I define

url: "https://name.github.io/repo/"

And here the url's are rendered fine.

What's going on with codespaces?

asked Sep 4, 2024 at 13:04
0

1 Answer 1

0

You should be able to set

baseurl: "/repo"

in the _config.yml and use {{ site.baseurl }} instead of {{ site.url }} in the templates.

answered Sep 5, 2024 at 7:03
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.