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

Customize site navigation breadcrumbs #25

Merged
merged 5 commits into from
Nov 12, 2023
Merged

Customize site navigation breadcrumbs #25

merged 5 commits into from
Nov 12, 2023

Conversation

per1234
Copy link
Owner

@per1234 per1234 commented Nov 12, 2023

No description provided.

This is the unmodified code from
https://github.com/adityatelange/hugo-PaperMod/blob/v7.0/layouts/partials/breadcrumbs.html

This code will serve as the base for modifications to improve the breadcrumbs component of the inoplatforms site.
The template files of this project are formatted according to a standardized style provided by the Prettier formatting tool.

The project's code style differs from the one used in the adityatelange/hugo-PaperMod repository this code was
sourced from.
Previously the breadcrumb text was the page name. That could result in overly verbose breadcrumb chains. Since there are
different considerations for a page title compared to a breadcrumb, it will be better to define their texts separately.

The breadcrumb text is now defined by a dedicated field in the front matter of each page.
The `page-type` field was added to the front matter during the early experimentation with the Hugo static website
generation tool. The field is not used currently and it is not clear whether such a field will ever be needed so it is
better to remove it for now to avoid unnecessary complexity in the website content source code.
@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Nov 12, 2023
@per1234 per1234 self-assigned this Nov 12, 2023
@per1234 per1234 merged commit c249b8a into main Nov 12, 2023
65 checks passed
@per1234 per1234 deleted the custom-breadcrumbs branch November 12, 2023 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant