website/_layouts/tagpage.html

52 lines
1.7 KiB
HTML
Raw Permalink Normal View History

2019-08-13 15:16:48 +02:00
---
layout: default
---
<section class="container">
2019-08-13 15:16:48 +02:00
<h1>#{{ page.tag }}</h1>
<div class="card-columns">
{% for l_page in site.pages %}
{% if l_page.tags contains page.tag %}
2019-08-13 15:16:48 +02:00
<div class="card">
<table>
<tbody>
<tr>
<td>
<div class="card-body">
{%- capture l_page_title %}
{%- t l_page.title %}
{%- endcapture %}
2019-08-13 15:16:48 +02:00
<h5 class="card-title">
<a class="l_page-link" href="{{ l_page.url | prepend: site.baseurl }}">{{ l_page_title }}</a>
2019-08-13 15:16:48 +02:00
</h5>
{%- capture l_page_description %}
{%- t l_page.description %}
{%- endcapture %}
<div class="card-text"><small> {{ l_page_description }} </small></div>
2019-08-13 15:16:48 +02:00
<br>
<a class="btn btn-secondary" href="{{ l_page.url | prepend: site.baseurl }}">{% t buttons.know_more %}</a>
2019-08-13 15:16:48 +02:00
</div>
</td>
</tr>
</tbody>
</table>
<div class="card-footer text-right">
2019-08-13 15:16:48 +02:00
<small>
<span>
{% for tag in l_page.tags %}
2019-08-13 15:16:48 +02:00
{% capture tag_name %}{{ tag }}{% endcapture %}
<a href="{% translate_link tag-{{ tag_name }} {{ site.lang }} %}"><code class="highligher-rouge"><nobr>{{ tag_name }}</nobr></code>&nbsp;</a>
2019-08-13 15:16:48 +02:00
{% endfor %}
</span>
</small>
</div>
</div>
<br>
<br>
{% endif %}
2019-08-13 15:16:48 +02:00
{% endfor %}
</div>
</section>