Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

BUG: nav bar URL error #34

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

BUG: nav bar URL error #34

VincentTam opened this issue Jul 5, 2019 · 6 comments

Comments

@VincentTam
Copy link
Collaborator

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
Copy link
Owner

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

@VincentTam
Copy link
Collaborator Author

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
Copy link
Owner

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

@pacollins
Copy link
Owner

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
Copy link
Collaborator Author

Thanks this works!

@pacollins
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants