jekyll / jekyll-help

NO LONGER MAINTAINED. USE JEKYLL TALK INSTEAD.
https://talk.jekyllrb.com
146 stars 19 forks source link

Jekyll not picking up CSS classes #338

Closed LisaBee224 closed 8 years ago

LisaBee224 commented 8 years ago

I only started having this issue after I changed the build destination to a specified folder instead of the default _site.

First, I was trying to change the background color of a div based on what page the user is on. My code for this was: {%assign current = page.url | split: '/' %} <li><a href="../product-type/index.html" {%if current == "product-type"%} class="active-circle"{% endif %}><div class="circle"></div></a></li>

This wasn't assigning the class "active-circle" of the page I was on, so, just to experiment, I tried hardcoding class to the a href directly in the compiled HTML file. But even this doesn't work! When I inspect it in the browser, the a href doesn't have the class that I manually wrote in. What is going on?! I've been working at this for a few hours with absolutely no luck!

jekyllbot commented 8 years ago

This repository is no longer maintained. If you're still experiencing this problem, please search for your issue on Jekyll Talk, our new community forum. If it isn't there, feel free to post to the Help category and someone will assist you. Thanks!