-
Notifications
You must be signed in to change notification settings - Fork 49
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
Merge breadcrumb bar to top, improve sidebar navigation #133
Conversation
Rebased on latest changes in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, this looks great to me! The breadcrumb navigation is more visually distinct and I think this increases its usefulness. I haven't gone deep on this PR yet, so I am leaving three observations for you to review when you are online next.
No. 1: The breadcrumb text is inconsistent whether you are looking at a category index page or a specific page within a category. See below:
Could you dig into this and figure out why the category title is inconsistent?
No. 2: The breadcrumb appears on the site homepage, which is not helpful. It should be hidden/excluded if the current page is the site's homepage. See below:
I think this one could be resolved easily by adding a boolean check to only render the breadcrumb bar if the current page does not equal the site homepage.
No. 3: Is there a more Hugo-centric way of creating the breadcrumb bar? We currently use custom JavaScript for the breadcrumb bar, which works… but I think some of the issues that are cropping up here are because we are trying to reinvent the wheel. What would a more Hugo-centric way of doing this look like? This does broaden the scope of this change, but it might be worthwhile to take this moment to improve the breadcrumb bar by using some Hugo helper functions and templating to help us create instead of custom JavaScript.
While I have not inspected the following links closely, there seem to be lots of hints on more elegant ways of doing this, like this blog post and this Hugo forum thread. These could be good jumping-off points to figure out what makes the most sense for us.
We can chat about this Pull Request in our check-in chat tomorrow! 🙂 You're on the right track here so far, but we can polish this further for a better solution.
@jwflory I couldn't figure out why the path was inconsistent. |
Yes, there is a hugo eccentric way of doing it. |
I have removed the breadcrumb in Home page |
@jwflory I am done with the basic layout. |
Taking a look at this now. I probably won't get it reviewed fully before stand-up, but we can discuss this PR and next steps for Sprint 3. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this locally and the change looks good! 👍🏻 But I want to understand the CSS and template changes better and consider how we load a new dependency (Font Awesome) into the site. There is a lot going on in this PR and I want to review its impact on other components.
For now, I left an in-line note about styling and whitespace. I will complete a more thorough review by the end of the week and leave comments as I go.
@Neha9849 There is a merge conflict with this PR since we merged #138 before it. I notice this could be a good opportunity to walk through rebasing since the commit size of the Pull Request grew. We can set up time on Thursday to go through a rebase and also walk through this Pull Request together. I think a call would be faster to go through the questions I have too. In the meantime, I suggest making a new branch copied from |
This commit refactors the existing breadcrumb bar to use a Hugo-native way of constructing the path. It also removes the duplicate "Home" and site title options, so the view is cleaner. Related to PR #133.
minor fix Modified navbar to make toggle icon inline with site title
@jwflory I did the rebase, it was successful this time🥳 |
Awesome! 💯 😎 These are advanced git skills we practiced today. But you went through it and did great! Practicing these skills also helps you work together in any distributed, collaborative project, especially when the number of committers grows. Keep it up 👍🏻 Unfortunately, I did not have time today to finish my review. I planned myself too thin for this sprint! Our team's meeting-free Fridays will make it easier for me to give this more focused time. @Idadelveloper, if you have time on Friday, I would appreciit ate if you could review too. It can help speed this PR up 🙂 |
@Neha9849 this is tiny but please fix the typo in blockquote p {
color: var(--text-color-dark) !imporant;
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Neha9849 can you make the breadcrumb text consistent? We should have something like Home>Communities>Fedora
rather than Home>communities>fedora
.
Also is this how the button looks like from your end?
@Idadelveloper
yep, I haven't noticed it there is some issue with the width, I will fix it out |
@Idadelveloper I fixed them |
@jwflory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. This is ready to merge. Thanks for working through the rounds of feedback on this one @Neha9849! Merging. 🎬
Changes made:
Fixes #122