pacollins / hugo-future-imperfect-slim

Multilingual Blogging Theme for Hugo | Check the Wiki for Documentation
https://themes.gohugo.io/hugo-future-imperfect-slim/
Other
303 stars 194 forks source link

BUG: nav bar URL error #34

Closed VincentTam closed 5 years ago

VincentTam commented 5 years ago

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 commented 5 years ago

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

VincentTam commented 5 years ago

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. :thinking:

https://github.com/pacollins/hugo-future-imperfect-slim/blob/88d64ffa0b17798de3c712b445b22c5eccd1e02c/layouts/partials/site-header.html#L22-L24

pacollins commented 5 years ago

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

pacollins commented 5 years ago

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 commented 5 years ago

Thanks this works!

pacollins commented 5 years ago

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