-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Provide active CSS class to the current page
This replaces the old method of checking based on the page name, which generally increased the size of all pages (and the CSS) by a couple dozen bytes and is less flexible. Nav pages are also determined programmatically from the data file. Autoformatter hit the default layout, sorry about that.
- Loading branch information
1 parent
9cfbc8c
commit 4929bdb
Showing
3 changed files
with
27 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
- url: "" | ||
label: Home | ||
- url: /join | ||
label: Join | ||
- url: /play | ||
label: Play | ||
- url: /ruleset/ | ||
label: Rules | ||
- url: /judgements | ||
label: Judgements | ||
- url: /glossary | ||
label: Glossary | ||
- url: /calendar | ||
label: Calendar | ||
- url: /archives | ||
label: Archives | ||
- url: /Herald/ | ||
label: Herald |
This file contains 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
This file contains 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