moutonrebelle / ecommerce-pattern-library

A term-long project redesigning an ecommerce website focusing on making a pattern library.
https://dazzling-neumann-3b84cb.netlify.com/pattern-library/#brand
0 stars 0 forks source link

Products #2

Open moutonrebelle opened 5 years ago

moutonrebelle commented 5 years ago

Hi @thomasjbradley

I have trouble seeing my product list page template, is there any reason why?

Thanks, Laura Meguerditchian

thomasjbradley commented 5 years ago

Try removing the quotes from "candy" on this line: https://github.com/moutonrebelle/ecommerce-pattern-library/blob/master/products.html#L9

moutonrebelle commented 5 years ago

Just did and it's still not working.... @thomasjbradley

thomasjbradley commented 5 years ago

There’s a typo in this chunk of code—a - is missing. Copy & paste this to overwrite the code: https://github.com/moutonrebelle/ecommerce-pattern-library/blob/master/_config.yml#L27-L31

defaults:
  - scope:
      path: _products
    values:
      layout: product
thomasjbradley commented 5 years ago

Also change these lines to what I’ve written below: https://github.com/moutonrebelle/ecommerce-pattern-library/blob/master/products.html#L10-L12

  {% for candy in site.products %}
  <div class="unit [xs-1 s-1 m-1-3] island-1-4">
    {% pattern cards/candy-product data=candy %}
moutonrebelle commented 5 years ago

I just changed it, but it doesn't work... @thomasjbradley

moutonrebelle commented 5 years ago

@thomasjbradley Really confused because it worked for a moment and it stopped working when I tried adding the images.