As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
config
docs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public
- Sep 07, 2020 update docs for
npm version
{% comment %}Get page handle{% endcomment %} | |
{% assign listname = page.handle %} | |
{% capture listname %}{{ page.title | handle }}{% endcapture %} | |
{% for link in linklists[listname].links %} | |
{% if link.object.products.first.id %} {% comment %}Make sure it's not empty{% endcomment %} | |
<a href="{{ link.url }}" title="{{ link.title }}"> | |
{{ link.object.products.first.featured_image | product_img_url: 'medium' | img_tag: link.title }} |
{% comment %} | |
- add this snippet to any product.liquid template, at the top of the file, and you can access the extra data provided by | |
the new version of Meta Tagger that supports Google Shopping. | |
{% endcomment %} | |
{% if template contains 'product' %} | |
{% if product.metafields.global %} | |
{% for mf in product.metafields.global %} |
"""CONVENTIONS: | |
positions are done row-column from the bottom left and are both numbers. This corresponds to the alpha-number system in traditional chess while being computationally useful. they are specified as tuples | |
""" | |
import itertools | |
WHITE = "white" | |
BLACK = "black" | |
$ git checkout --orphan NEWBRANCH
$ git rm -rf .
--orphan
creates a new branch, but it starts without any commit. After running the above command you are on a new branch "NEWBRANCH", and the first commit you create from this state will start a new history without any ancestry.
You can then start adding files and commit them and they will live in their own branch. If you take a look at the log, you will see that it is isolated from the original log.
/** | |
* Convert font-size from px to rem with px fallback | |
* | |
* @param $size - the value in pixel you want to convert | |
* | |
* e.g. p {@include fontSize(12px);} | |
* | |
*/ | |
@use "sass:math"; |
{% assign total_saving = 0 %} | |
{% for item in cart.items %} | |
{% if item.variant.compare_at_price > item.variant.price %} | |
{% capture saving %}{{ item.variant.compare_at_price | minus: item.variant.price }}{% endcapture %} | |
{% assign total_saving = saving | plus: total_saving %} | |
{% endif %} | |
...rest of cart code within for loop | |
{% endfor %} | |
Display saving: |
<form action="/cart/add" method="post"> | |
{% if product.variants.size > 1 %} | |
{% if product.options[0] %} | |
{% assign used = '' %} | |
<label for="select-one">{{ product.options[0] }}</label> | |
<select id='select-one' onchange="letsDoThis()"> | |
{% for variant in product.variants %} | |
{% unless used contains variant.option1 %} | |
<option value="{{ variant.option1 }}">{{ variant.option1 }}</option> | |
{% capture used %}{{ used }} {{ variant.option1 }}{% endcapture %} |
::-webkit-scrollbar{ | |
width: 10px; | |
} | |
::-webkit-scrollbar-track-piece{ | |
background-color: #FFF; | |
} | |
::-webkit-scrollbar-thumb{ | |
background-color: #CBCBCB; |