Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save wmakley/80221c753e27bf5d78e60d4a437071e9 to your computer and use it in GitHub Desktop.

Select an option

Save wmakley/80221c753e27bf5d78e60d4a437071e9 to your computer and use it in GitHub Desktop.

Revisions

  1. William Makley revised this gist Nov 8, 2017. No changes.
  2. William Makley created this gist Nov 8, 2017.
    5 changes: 5 additions & 0 deletions business-catalyst-dynamic-credit-card-years.liquid
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    {% assign currentYear = globals.site.dateNow | date: "yyyy" %}
    {% for i in (0..10) -%}
    {% capture yearIncrement -%}{{currentYear | plus: i}}{% endcapture -%}
    <option value="{{yearIncrement}}">{{yearIncrement}}</option>
    {% endfor -%}