{% assign cat = site.data.sort[include.ln] %}{% assign cat_size = cat | size %} {% capture price_fairo %}{{ site.data.price-sources['fairo'].price['FAIRO'] }}{% endcapture %} {% if cat_size == 0 %}

No Categories found

{% else %}
{% endif %} {% for o in site.posts %}
{% if o.image-profile == 'img' %} {% elsif o.image-profile == 'imgbb' %} {% assign P = o.image | src_extract | imagesize %}{% assign Ps = P | size %} {% if Ps == 2 %} {% assign px = P[0] | times: P[1] %} {% if px < site.px_max %} {{ o.image }} {% else %} image too large! (max: {{ site.px_max | decimals | divided_by: 1000000 | decimals }}Mpx ) {% endif %} {% else %} image not found! {% endif %} {% endif %}
{{ o.headline | truncate: 32 }}
{{ o.language-code }} {{ o.latitude }},{{ o.longitude }},{{ o.country-code }} {{ o.condition }} {% for tag in o.tags %} {% if forloop.index == 1 %} {{ site.data.categories | map: o.tags[0] | map: "title" | map: include.ln }} {% else %} {% capture Tag %}{{ site.data.categories | map: o.tags[0] | map: "Tags" | map: tag | map: include.ln }}{% endcapture %} {% if Tag == '' %}{{ tag }}{% else %}{{ Tag }}{% endif %} {% endif %} {% endfor %}
{{ o.description }}
{% capture priceref %}{{ o.price-reference[0] | join: '-' }}{% endcapture %} {% capture price_ex %}{{ site.data.price-sources[priceref].price | plus: 0.00001 | round: 4 }}{% endcapture %} {% capture price %}{% if price_ex != "" %}{{price_ex}}{% else %}{{ o.price-source }}{% endif %}{% endcapture %}
{{ o.price-per-unit | divided_by: price | round:1 | decimals }} FAIR
{% if o.min-size > 0 %}{{ o.min-size }}..{% endif %}{{ o.max-size }} {{ o.unit }}
( {{ o.price-per-unit | decimals }} {{ site.data.price-sources[priceref].currency }} / {{ o.unit }} )
( {{ price }} {{ site.data.price-sources[priceref].currency }} / FAIR )
{% if price_ex != "" %}{{ o.price-source | replace: '-','/' }}{% else %}fixed price{% endif %}
{% endfor %}