Merged
Conversation
…ntatively drop this header item pending full CUGOS approval.
d003fa6 to
8adf10d
Compare
mizmay
requested changes
Apr 10, 2026
Contributor
mizmay
left a comment
There was a problem hiding this comment.
Nice!
I made couple of suggestions below, to improve site navigation and be robust.
Separately I'll file a couple of issues this change surfaces, not deal-breakers, just worth noting.
| {% for weight in (0..10) %}{% for p in site.pages %}{% if p.weight == weight %} | ||
| {% for weight in (0..10) %}{% if weight == 5 %} | ||
| <li class="dropdown {% if page.url contains 'fling' %}active{% endif %}"> | ||
| <a href="/2025-fall-fling/">Flings <i class="fa fa-caret-down"></i></a> |
Contributor
There was a problem hiding this comment.
Suggest removing the href tag, otherwise clicking on "Flings" in the top bar still goes to the 2025 event, which is confusing.
Contributor
There was a problem hiding this comment.
Should this be "Flings" or "Past Flings"?
Contributor
Author
Comment on lines
+7
to
+8
| <li class="dropdown {% if page.url contains 'fling' %}active{% endif %}"> | ||
| <a href="/2025-fall-fling/">Flings <i class="fa fa-caret-down"></i></a> |
Contributor
There was a problem hiding this comment.
Suggested change
| <li class="dropdown {% if page.url contains 'fling' %}active{% endif %}"> | |
| <a href="/2025-fall-fling/">Flings <i class="fa fa-caret-down"></i></a> | |
| {% assign fling_urls = site.flings | map: 'url' %}<li class="dropdown {% if fling_urls contains page.url %}active{% endif %}"> | |
| <a>Flings <i class="fa fa-caret-down"></i></a> |
A bit more robust, just in case someone in the future ever creates a URL slug that contains the word flings but isn't about a specific fling.
mizmay
reviewed
Apr 10, 2026
Contributor
There was a problem hiding this comment.
Suggested change
| #menu li:not(.dropdown):hover a { |
Optional, but this fixes 2 from #428
Contributor
Author
This was referenced Apr 10, 2026
…es comments and readability of the Jekyll logic for building the nav bar.
…nces a CUGOS Fling.
…g titles are still bolded on mouseover only.
mizmay
approved these changes
Apr 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This PR addresses Issue #274.
Changes:
_includes/nav.htmlwith some new CSS to style the dropdown. To make this a "Jekyll-y" update, fling titles (years), order, and paths are stored in the_config.ymlmetadata. Past flings are sorted in reverse chronological order.You can preview this change by serving the PR locally:
Here are some example screenshots:
Front page:
Front page, dropdown expanded, mouse hovering over "2025":
Narrow viewport, nav menu expanded:
On a fling page: