Active class in nunjucks

205 views
Skip to first unread message

Jitendra Vyas

unread,
Sep 2, 2015, 10:32:58 PM9/2/15
to Nunjucks
How to do the same thing with Nunjucks http://jekyllsnippets.com/active-tabs-in-nav/

Carl Meyer

unread,
Oct 20, 2015, 6:31:45 PM10/20/15
to Nunjucks
On Wednesday, September 2, 2015 at 8:32:58 PM UTC-6, Jitendra Vyas wrote:
How to do the same thing with Nunjucks http://jekyllsnippets.com/active-tabs-in-nav/

Pretty much exactly the same way as shown in the blog post. The only question is their `page.url` var, which may not be the same for you -- but that has nothing to do with nunjucks, it depends on what web framework you're using and what context you're passing in to your templates.

Carl
Reply all
Reply to author
Forward
0 new messages