privacyguides.org/_includes/recommendation-text.html
2021-05-03 13:09:01 -05:00

16 lines
741 B
HTML

<h3 class="h4{% if item.type == "Anti-Recommendation" %} text-danger">
<span class="fad fa-times-octagon fa-fw text-danger"></span>{% else %}">{% endif %} {{ item.title }}
</h3>
{{ item.description | markdownify }}
{% if item.downloads or item.website or item.article %}<p>
{% capture text %}
{% if item.article %} | <a href="{% link {{ item.article }} %}">More Information</a>{% endif %}
{% if item.website %} | <a href="{{ item.website }}">Project Website</a>{% endif %}
{% if item.downloads %}
{% for platform in item.downloads %}
| <i class="{{ platform.icon }} fa-fw"></i> <a href="{{ platform.url }}"> {{ platform.name }}</a>
{% endfor %}
{% endif %}
{% endcapture %}{{ text | remove_first: '| ' }}
</p>{% endif %}