1
0
Files
sardines/templates/inc/article-card.html
Jérémie Ducastel 90d68a9a4b fixes + readme
* correctif liens pocket
* nommage des endblocks
* réadmet + ajout capture
2015-08-10 13:37:36 +02:00

38 lines
1.3 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<article class="card">
{#}<header class="extra content">
<a class="meta category" href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
</header>#}
<section class="content">
<a class="header" href="/{{ article.url }}">{{ article.title }}</a>
{# TODO : si systeme d'icones par categorie, remplacer l'icone ici #}
{% if category %}
<div class="ui horizontal divider">
<i class="folder icon"></i>
</div>
{% else %}
<a class="ui horizontal divider category" href="/{{ article.category.url }}">
<i class="folder icon"></i> {{ article.category }}
</a>
{% endif %}
<section class="summary">
{{ article.summary }}
</section>
</section>
{% if article.metadata.image %}
<div class="image">
<img src="{{ article.metadata.image }}" />
</div>
{% else %}
{#}<div class="center aligned">
<i class="large circular leaf icon"></i>
</div>#}
{% endif %}
<footer class="extra content">
<a href="/{{ article.url }}"><i class="angle double right icon"></i> lire</a>
<!--<span class="right floated">{{ article.locale_date }}</span>-->
<a href="https://getpocket.com/save?url={{ SITEURL }}/{{ article.url }}" title="Save to pocket" class="right floated">
<i class="cloud upload icon"></i> pocket
</a>
</footer>
</article>