make some changes to _includes/card.html

This commit is contained in:
Samuel Shifterovich
2018-10-25 17:32:13 +02:00
parent 4940fd3f50
commit 9a5d8423b2
3 changed files with 25 additions and 28 deletions

View File

@ -10,15 +10,21 @@
<div class="card-body">
<p><img src="{{include.image}}" alt="{{include.title}}" class="panel-item">{{include.description}}</p>
<div class="card-bottom">
<p><a class="btn btn-{{include.color}}" href="{{include.url}}">
{% if include.website %}
{{include.website}}
{% else %}
Website: {{ include.url | remove: "https://" | remove: "http://" | remove: "www." | remove: "/" }}
<p>
<a class="btn btn-{{include.color}}" href="{{include.url}}">Website:
{% if include.website %}
{{include.website}}
{% else %}
{{ include.url | remove: "https://" | remove: "http://" | remove: "www." | remove: "/" }}
{% endif %}
</a>
{% if include.tor %}
<a data-toggle="tooltip" data-placement="bottom" data-original-title="{{include.tor}}. Requires specific software to access: torproject.org" href="{{include.tor}}"><img alt="Tor" src="img/layout/tor.png" width="35"></a>
{% endif %}
</a>
</p>
<p>{{include.footer}}</p>
{% if include.footer %}
<p>{{include.footer}}</p>
{% endif %}
</div>
</div>
</div>