Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Only show buy links with titles
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-linaro committed Jun 17, 2024
1 parent 289bf3a commit b07755a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _layouts/product.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<i class="glyphicon glyphicon-shopping-cart pull-right" style="margin-top:8px;"></i>
</li>
{% for buy_link in page.product_buy_links %}
{% if buy_link.link-title %}
<li class="list-group-item">
<a href="{{ buy_link.link-url }}">
<span class="text-left">{{ buy_link.link-title }}</span>
Expand All @@ -52,6 +53,7 @@
{% if buy_link.from %}<a href="{{ buy_link.link-url }}">Buy from {{buy_link.from}}</a>{% endif %}
</small>
</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
Expand Down

0 comments on commit b07755a

Please sign in to comment.