bigcartel / dugway

Easily build and test Big Cartel themes.
https://developers.bigcartel.com/api/themes
MIT License
149 stars 22 forks source link

Listing categories is broken in dugway #160

Closed maxcr closed 6 years ago

maxcr commented 6 years ago
          {% for category in categories.all %}
            <span class="meta-category-name">{{ category.name }}</span><br>
          {% endfor %}

Above code will list every category once for all products. No I am not within a product loop.

maxcr commented 6 years ago

nevermind just referred to default theme. Again I am an idiot.

            {% for category in categories.active %}
            <li>{{ category | link_to }}</li>
            {% endfor %}

Man why does your shit have to work so fucking well.

maxcr commented 6 years ago

Nevermind its listing the active categories * number of products I have currently listed. I'm thinking I messed up my liquid somewhere.

maxcr commented 6 years ago

FIGURED IT OUT. LIQUID WAS NOT RESPECTING MY COMMENTS!!!

Not sure if this is a dugway interpreter or if liquid is just supposed to not give a shit that it's commented out.