xmitter-11ty/page-list.njk
Jens Oliver Meiert 8247b2073e fix: add tr element for valid markup
Signed-off-by: Jens Oliver Meiert <jens@meiert.com>
2021-06-12 19:50:33 +02:00

25 lines
481 B
Plaintext

---
pagination:
data: collections.all
size: 20
alias: entries
layout: layouts/home.njk
permalink: /page-list/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}
---
<table>
<thead>
<tr>
<th>URL</th>
<th>Page Title</th>
</tr>
</thead>
<tbody>
{%- for entry in entries %}
<tr>
<td><a href="{{ entry.url }}"><code>{{ entry.url }}</code></a></td>
<td>{{ entry.data.title }}</td>
</tr>
{%- endfor %}
</tbody>
</table>