Skip to content
Discussion options

You must be logged in to vote

Hey @EskiMojo14 , thanks for checking out Greenwood and glad you are enjoying it so far!

So Greenwood has a config setting called "Active Content" that I think is what you're looking for here, as I use it for just this kind of thing! Specifically, you would be looking to leverage the Active Frontmatter pattern, which is similar in nature to an ESI (edge side include).

For example, on the Greenwood website we use this pattern a lot to do the underline styles for the header navigation, and side nav "highlight" styling based on the current page

  1. Have a custom element that accepts an attribute, like say the current route (just using a vanilla HTMLElement here, but a LitElement should work j…

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
6 replies
@thescientist13
Comment options

@EskiMojo14
Comment options

@EskiMojo14
Comment options

@thescientist13
Comment options

@EskiMojo14
Comment options

Answer selected by EskiMojo14
Comment options

You must be logged in to vote
4 replies
@EskiMojo14
Comment options

@EskiMojo14
Comment options

@thescientist13
Comment options

@EskiMojo14
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants