Issue with Menu Bar and Missing Content Display in Hugo learn Theme

Hi Hugo community!

I am facing an issue with a Hugo site I’m developing, specifically related to the menu bar and missing content display. Here are the two main problems I’ve encountered:

  1. Some unexpected weird text (“bao ngoc…”) is appearing just below the search button in the menu bar.
  2. The content that should be displayed below the “Home” button in the menu is not visible, though there seems to be a white block where the names of the sections or files should appear. I added content, and I can navigate to them and search them in the search bar, but they do not appear listed under “Home”.

I’ve tried to locate the source of these issues within the theme’s templates, but I’m having difficulty finding and resolving them.

Here is my Theme Structure:

  • 404.html
  • _default
  • index.html
  • index.json
  • partials
  • shortcodes

I’ve checked through most of these templates, especially the _default and partials directories, but couldn’t identify the root of the problem.

Additional Info:

  • I’m using the Hugo theme Learn.
  • The site is intended to be hosted on GitLab pages.
  • I’m working on a Red Hat 8 VM.

If anyone has encountered a similar issue or has suggestions on where to look or how to troubleshoot, I would greatly appreciate your help!

Thank you in advance for your time and assistance.

From your screenshot it’s nearly impossible to say what’s wrong. Let us see your code

it’s nearly impossible

1 Like