website/_layouts/tagpage.html
2021-08-20 16:50:03 +02:00

50 lines
1.7 KiB
HTML

---
layout: default
---
<div class="home">
<h1>#{{ page.tag }}</h1>
<div class="card-columns">
{{ site.tags | inspect }}
{% 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>
</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>
</div>