{% for o in posts %}{% capture pubk %}{{ o.pubkey }}{% endcapture %}
<{{ o.bid-ask }}>{% if o.bid-ask == 'ask' %} ask{% else %} bid{% endif %} {{ o.latitude }},{{ o.longitude }},{{ o.country-code }}
{% for tag in o.tags %} {% if forloop.index == 1 %} {{ site.data.categories.ex | map: o.tags[0] | map: "title" | map: include.ln }} {% else %} {% capture Tag %}{{ site.data.categories.ex | 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 | join: '-' }}{% endcapture %} {% capture price_ex %} {% if site.data.price-sources[priceref] != null %} {{ site.data.price-sources[priceref].price | plus: 0.00001 | round: 4 }} {% else %} 0 {% endif %} {% endcapture %}{% assign price_ex = price_ex | times: 1 %} {% capture price %}{% if price_ex != "" %}{{price_ex}}{% else %}{{ o.price-source }}{% endif %}{% endcapture %} {% capture pricel %}{{ o.price-per-unit }}{% endcapture %} {% capture pricelimit %} {% if o.bid-ask == 'bid' and pricel < price %} {{ price }} {% elsif o.bid-ask == 'ask' and pricel > price %} {{ price }} {% else %} {{ o.price-per-unit }} {% endif %} {% endcapture %}
{% if o.min-size > 0 %}{{ o.min-size }}..{% endif %}{{ o.max-size }} {{ o.price-reference[0] }} ( {{ pricelimit | times: o.max-size | decimals }} {{ o.price-reference[1] }} )    {{ pricelimit | decimals }} {{ o.price-reference[1] }}
{% if price_ex > 0 %}( {{ priceref }} {{ price }} {{ site.data.price-sources[priceref].currency }} / {{ o.price-reference[0] }} )
{% else %}fixed price{% endif %}
{% endfor %}