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

Unable to remove breadcrumb navigation from Docs pages in Tailwind template #3178

Open
2 tasks done
burkebrunson opened this issue Dec 17, 2024 · 0 comments
Open
2 tasks done

Comments

@burkebrunson
Copy link

burkebrunson commented Dec 17, 2024

Preliminary Checks

Description

I tried to set the show_breadcrumb: true Page Feature to show_breadcrumb: false in an attempt to hide breadcrumb navigation from certain pages that automatically show it in the Tailwind templates, like the Docs pages of the CV template. However, that approach fails to provide the desired effect. I've also tried removing the line completely, too, with the same (non-)effect. There just doesn’t seem to be any means of hiding the breadcrumb navigation in Hugo Blox templates, particularly those that have "Docs" capability, on pages you wish to hide it on. I am primarily focused on the Docs pages because those are the ones where I've observed this possible bug.

image

Is there a way to make this desired change easily via Page Features that I am not aware of? Otherwise, it seems that this option to remove or toggle off does not exist.

Previous related developments in Hugo Blox templates found while searching for duplicate issues:
#1999 (Desire for breadcrumb navigation expressed)
#2009 (Breadcrumb navigation capabilities introduced)
#2395 (Hugo Blox incorporates Hugo Cascade capability and impact on breadcrumb navigation page feature functionality, specifically)

Reproduction Link

https://github.com/burkebrunson/test-doc

Steps to Reproduce

  1. Edit a fresh Hugo Blox template with Docs capability, such as the Documentation template linked on the Hugo Blox website.
  2. Run hugo command to build the site scaffolding on the template seed files. Using any Hugo Blox-compatible version of Hugo should suffice.
  3. Run hugo server -D command to run a local instance of the site to observe saved changes of development.
  4. Open hugo.yaml and locate the Hugo Cascade section of "Page Options" for the "Docs folder options" (lines 14-22).
  5. On line 18, set show_breadcrumb: true to show_breadcrumb: false and save the change.
  6. Observe that breadcrumb navigation is not removed from the resulting updated site.
  7. On line 18, completely remove the show_breadcrumb line from hugo.yaml and save the change.
  8. Revisit step 6.

Expected Result

The expected result is for the Breadcrumb navigation to be able to be toggled off and removed from the affected page (in the case that the change is made to a single page's front matter) or pages (in the case of a Hugo Cascade).

Actual Result

No change to the breadcrumb navigation appearing on pages of the site happens.

What Hugo Module versions does your site use?

module github.com/HugoBlox/theme-documentation

go 1.15

require (
	github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20240217212918-ae7f0c597978
	github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.3.1
)

Link to go.mod file

What operating system(s) are you seeing the problem on?

macOS

What browser(s) are you seeing the problem on?

Microsoft Edge

Which Hugo Blox template are you using?

Documentation (happens in my Academic CV Pro template site, too)

What version of Hugo are you using?

Hugo Extended v0.139.5 / v0.139.4 (although I've seen this in all previous versions I've run, too - both officially Hugo Blox-compatible versions and later versions)

@burkebrunson burkebrunson changed the title Unable to remove breadcrumb navigation from pages like Docs in Tailwind template Unable to remove breadcrumb navigation from Docs pages in Tailwind template Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant