Skip to content

fix: replace pageRef with url in menus to fix broken Blog link#16

Merged
eduardofraga merged 1 commit into
mainfrom
fix/blog-menu-not-opening
Jun 20, 2026
Merged

fix: replace pageRef with url in menus to fix broken Blog link#16
eduardofraga merged 1 commit into
mainfrom
fix/blog-menu-not-opening

Conversation

@eduardofraga

Copy link
Copy Markdown
Contributor

Problem

The Blog menu link (and Sobre, Contato) had empty href attributes, making them unclickable.

Root cause

  1. Blowfish theme submodule was not initializedthemes/blowfish/ was empty (git submodule update --init --recursive needed).
  2. pageRef entries not resolving – even with the theme, pageRef menu items failed to produce valid URLs (likely a Hugo version compatibility issue: v0.163.3 vs theme's expected 0.158.0/0.161.1).

Fix

  • Replaced pageRef with explicit url in both menus.pt-br.toml and menus.en.toml for Sobre, Blog, and Contato entries.
  • Also run git submodule update --init --recursive before building.

Verification

hugo --gc --minify  # builds clean

All menu hrefs now correctly point to their respective pages.

The Blowfish theme submodule was not initialized and pageRef menu
entries (Sobre, Blog, Contato) resolved to empty href attributes.

- Run git submodule update --init --recursive to restore the theme
- Replace pageRef with explicit url in both pt-br and en menus
@eduardofraga eduardofraga merged commit 25a1d92 into main Jun 20, 2026
1 of 2 checks passed
@eduardofraga eduardofraga deleted the fix/blog-menu-not-opening branch June 20, 2026 00:39
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

Successfully merging this pull request may close these issues.

1 participant