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
KSPR
2,4575 gold badges33 silver badges51 bronze badges
1 Answer 1
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
mb21
40.3k8 gold badges130 silver badges158 bronze badges
Sign up to request clarification or add additional context in comments.