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

BUG: nav bar URL error #34

Closed
VincentTam opened this issue Jul 5, 2019 · 6 comments

Comments

Projects
None yet
2 participants
@VincentTam
Copy link
Contributor

commented Jul 5, 2019

Bug Report

Describe the bug

Nav bar links duplicate project slug in GitHub/GitLab project pages.

On demo site: https://vincenttam.frama.io/fish-demo/, I got

https://vincenttam.frama.io/fish-demo/fish-demo/categories/

and so on.

Expected behavior

https://vincenttam.frama.io/fish-demo/categories/

Screenshots

Screenshot from 2019-07-05 19-38-34

Environment

@pacollins

This comment has been minimized.

Copy link
Owner

commented Jul 5, 2019

This is probably an issue similar to #32 / #33 dealing with baseurl.

@VincentTam

This comment has been minimized.

Copy link
Contributor Author

commented Jul 5, 2019

This is probably an issue similar to #32 / #33 dealing with baseurl.

Agreed. Despite my PR's on another Hugo theme Beautiful Hugo, I can't tell what's wrong with this. 🤔

{{ range .Site.Menus.main }}
<a href="{{ .URL | relLangURL }}" class="link"><i class="{{ .Identifier }}">&nbsp;</i>{{ .Name }}</a>
{{ end }}

@pacollins

This comment has been minimized.

Copy link
Owner

commented Jul 5, 2019

After some experimenting, I am still lost. I have posted the the question on the hugo boards.

@pacollins

This comment has been minimized.

Copy link
Owner

commented Jul 6, 2019

So the issue is the leading slash in the config.toml:

url = "about/" is the syntax it wants (you could drop the trailing slash if you wanted to). I'm not sure that is an intended interaction.

@VincentTam

This comment has been minimized.

Copy link
Contributor Author

commented Jul 6, 2019

Thanks this works!

@pacollins

This comment has been minimized.

Copy link
Owner

commented Jul 6, 2019

The issue I posted says that is as intended, so this can close.

@pacollins pacollins closed this Jul 6, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.