Link to homepage

Hi. Sorry for noob question but haven’t been able to find an answer. I’ve managed to make links to my pages by using <a href="/about">About</a> for example. Is there a way to do this for the homepage?

Either <a href="/">Home</a> or <a href="{{ .Site.BaseURL }}">Home</a> would do.

2 Likes

If the base URL is set correct, then a simple / too will work.

<a href="{{ .Site.BaseURL | relLangURL }}">Home</a> worked for me to ensure that it links to the correct language’s homepage

1 Like