website/_layouts/tagpage.html

53 lines
1.9 KiB
HTML
Raw Normal View History

2019-08-13 15:16:48 +02:00
---
layout: default
---
<div class="home">
<h1>#{{ page.tag }}</h1>
<div class="card-columns">
{% for post in site.tags[page.tag] %}
<div class="card">
<table>
<tbody>
<tr>
{% if post.image %}
<td class="img d-none d-sm-table-cell" style="background-image: url({{ post.image | prepend:'/assets/images/' }});"></td>
{% endif %}
<td>
<div class="card-body">
{% if post.image %}
<img class="d-sm-none" src="{{ post.image | prepend:'/assets/images/' }}">
{% endif %}
<h5 class="card-title">
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
<i class="mb-1"><small>{{ post.date | date: "%d/%m/%Y" }}</small></i>
</h5>
<div class="card-text"><small> {{ post.description }} </small></div>
<br>
<a class="btn btn-secondary" href="{{ post.url | prepend: site.baseurl }}">Approfondisci</a>
</div>
</td>
</tr>
</tbody>
</table>
<div class="card-footer" style="text-align: right;">
<small>
<span>
{% for tag in post.tags %}
{% capture tag_name %}{{ tag }}{% endcapture %}
<a href="/tag/{{ tag_name }}.html"><code class="highligher-rouge"><nobr>{{ tag_name }}</nobr></code>&nbsp;</a>
{% endfor %}
</span>
</small>
</div>
</div>
<br>
<br>
{% endfor %}
</div>
<p class="rss-subscribe">sottoscrivi <a href="{{ "/feed.xml" | prepend: site.baseurl }}"><i class="fas fa-rss-square"> via Feed</i></a></p>
</div>