--- layout: default ---

Box Designs

{% assign siteVersion = site.currentVersion | prepend: 'v' -%} {%- assign boxesVersion = page.bxVersion | default: siteVersion -%} {%- include version-select.html currentVersion=boxesVersion contentPiece="box-designs" compact=true %} {%- comment -%}{%- endcomment -%} {%- assign tagList = "" | split: "," -%} {%- for p in site.pages -%} {%- if p.designTag and p.bxVersion == boxesVersion -%} {%- assign tagList = tagList | push: p.designTag -%} {%- endif -%} {%- endfor - %} {%- assign tagList = tagList | sort | uniq -%} {%- comment -%}{%- endcomment -%} {% assign dataFile = 'designs-' | append: boxesVersion | replace: '.', '_' %} {% assign allDesigns = site.data[dataFile] %} {%- comment -%}{%- endcomment -%} {%- if tagList.size > 0 and page.designTag -%} {%- assign filterActive = true -%} {%- else -%} {%- assign filterActive = false -%} {%- endif -%} {%- comment -%}{%- endcomment -%} {%- assign numDesigns = 0 -%} {%- for record in allDesigns -%} {%- if filterActive and record.tags -%} {%- if record.tags contains page.designTag -%} {%- assign numDesigns = numDesigns | plus: '1' -%} {%- endif -%} {%- elsif tagList.size == 0 or page.designTag == null -%} {%- assign numDesigns = numDesigns | plus: '1' -%} {%- endif -%} {%- endfor - %} {%- comment -%}{%- endcomment -%} {%- if tagList.size > 0 -%}
{{ numDesigns }} matching designs
{% if page.designTag -%}

Designs tagged {{ page.designTag }} {{ site.data.designs-tag-descriptions.tag_descriptions[page.designTag] }}

{%- endif -%} {%- else -%}

Boxes {{ boxesVersion }} featured {{ numDesigns }} designs.

{%- endif -%} {%- comment -%}{%- endcomment -%} {%- assign showCoderHint = false -%} {%- for record in allDesigns -%} {%- if filterActive -%} {%- unless record.tags and record.tags contains page.designTag -%} {%- continue -%} {%- endunless -%} {%- endif -%} {%- comment -%}{%- endcomment -%} {%- assign heading_text = record.name -%} {% if record.alias and record.alias.size %} {% capture heading_text %}{{ record.alias | join: ', ' | prepend: ' (' | prepend: record.name | append: ')' }}{% endcapture %} {% for alias in record.alias -%} {% endfor -%} {% endif %} {% include heading.html level=3 text=heading_text slug=record.name %} {%- comment -%}{%- endcomment -%} {% if record.tags -%}

{%- for tag in record.tags -%} {% endfor -%}

{% endif %} {%- comment -%}{%- endcomment -%}
{{ record.sample | escape }}
{%- comment -%}{%- endcomment -%}

{%- if record.designer == "(public domain)" -%} Artwork is public domain {%- unless record.coder == "Thomas Jensen" -%} , coded for boxes by {{ record.coder | escape }} {%- else -%} {%- assign showCoderHint = true -%} {%- endunless -%} {%- elsif record.designer == record.coder -%} Artwork and boxes config by {{ record.coder | escape }} {%- else -%} Artwork by {{ record.designer | escape }} {%- unless record.coder == "Thomas Jensen" -%} , coded for boxes by {{ record.coder | escape }} {%- else -%} {%- assign showCoderHint = true -%} {%- endunless -%} {%- endif %}

{%- endfor - %} {% if showCoderHint -%} Where the coder of the boxes config is not explicitly listed it is "Thomas Jensen". {% endif -%}