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

Menu items inconsistency #80

Closed
thibaultmeyer opened this issue Oct 9, 2017 · 3 comments
Closed

Menu items inconsistency #80

thibaultmeyer opened this issue Oct 9, 2017 · 3 comments

Comments

@thibaultmeyer
Copy link

thibaultmeyer commented Oct 9, 2017

Sometime items from left menu just disappear (tested with Hugo 0.25.1 and 0.29). I said sometime, cause the issue appear few time (about 1 time / 4 "compilation")

By example I have the following left menu:

Book 1
   - Page 1
   - Page 2
   - Page 3
Book 2
   - Chapter 1
         - Page 1
         - Page 2
         - Page 3
   - Chapter 2
         - Page 1
         - Page 2

Sometime, when I visit a page (random, issue is not consistent) the left menu remove some links, by example, the above left menu become

Book 1
   - Page 1
   - Page 2
   - Page 3
Book 2
   - Chapter 1
         - Page 1
         - Page 2  [VISITED PAGE]

image

With -v (verbose), I see no warnings or errors during generation...

@thibaultmeyer thibaultmeyer changed the title Possible incompatibility with Hugo 0.29 Menu items inconsistency (Possible incompatibility with Hugo 0.29) Oct 9, 2017
@thibaultmeyer thibaultmeyer changed the title Menu items inconsistency (Possible incompatibility with Hugo 0.29) Menu items inconsistency Oct 9, 2017
@jcw
Copy link

jcw commented Nov 1, 2017

This may be a cache refresh issue - I've been seeing the same on several occasions, but so far a browser refresh seems to fix it. I don't know whether Hugo & this theme use Etags or other page validity checks, maybe the pages need to have shorter expire-by dates or something...

@matcornic
Copy link
Owner

Yeah, it happened to me too once. I rerun hugo server and it was OK.

Maybe it's a cache pbm and configuring your host server with Cache-Control header wit no cache (max-age=0) could be a solution.
Maybe it's a problem when Hugo generates the page.

I'll close the issue for now, but don't hesitate to send a message if you'd encounter this issue again. If this happens, try to extract the HTML of the menu in order to check if the submenu is there (but hidden) or not there at all.

@matcornic
Copy link
Owner

Actually the issue has been encountered here to #79

patrick-othmer pushed a commit to patrick-othmer/hugo-theme-learn that referenced this issue Oct 7, 2021
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

3 participants