cloudfour / cloudfour/drizzle

Consider using a navigation helper to determine current page instead of JavaScript

Open
#3 2 comments 0 reactions 0 assignees View on GitHub
builder
Dominant language
HTML
Stars
662
Forks
28
PR merge metrics
No merged PRs in 30d

Description

Currently, the "current page" is identified [using some JavaScript on the client side](https://github.com/cloudfour/drizzle/blob/ea49f40417dd77586bd1000641aa661db48d0283/src/assets/drizzle/scripts/drizzle.js).

It'd be nice if this could be determined during compilation, so while iterating through nav objects we could check for an attribute (`current` or `active` or whatevs) and style things that way.

Low priority, just a thought!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.