website/_layouts/tagpage.html

51 lines
1.7 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">
2021-08-20 16:48:07 +02:00
{{ site.tags | inspect }}
2019-08-13 15:16:48 +02:00
{% 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 text-right">
2019-08-13 15:16:48 +02:00
<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>