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

If Site BaseURL is not /, the default top link is invalid #1

Open
aghman opened this issue Aug 12, 2021 · 2 comments
Open

If Site BaseURL is not /, the default top link is invalid #1

aghman opened this issue Aug 12, 2021 · 2 comments

Comments

@aghman
Copy link

aghman commented Aug 12, 2021

When your hugo site is configured with .Site.BaseURL set to something that doesn't equate to the /, the default title link in the header results in a 404.

For example, one of my sites' URL is "https://exampleworkblog.workblog.com/hugo-blog/" The default link when I use results in a user clicking the title going to "https://exampleworkblog.workblog.com/" , which is an invalid path, resulting in a 404.

@aghman
Copy link
Author

aghman commented Aug 12, 2021

You can fix this by editing layouts/partials/header.html and changing the URL for the title link from "/" to "{{ .Site.BaseURL }}"
I'd be more than happy to fix this and issue a pull request, if you're ok with it.

@idoubi
Copy link
Owner

idoubi commented Aug 22, 2021

Thanks for your issue and I'll be appreciate with your pull request.

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