1
0
Fork 0
mirror of https://github.com/eosswedenorg/apt synced 2026-06-16 04:34:56 +02:00

Adding _includes/repo-table.html

This commit is contained in:
Henrik Hautakoski 2020-04-27 15:46:48 +02:00
parent ea903b700b
commit 1e85b4eedb

22
_includes/repo-table.html Normal file
View file

@ -0,0 +1,22 @@
<table>
<thead>
<tr>
<th style="text-align: left">Name</th>
<th style="text-align: left">Distributions</th>
<th style="text-align: left">Description</th>
</tr>
</thead>
<tbody>
{%- assign repos = site.repos | sort: 'sequence' -%}
{%- for repo in repos -%}
<tr>
{%- assign url = repo.url | relative_url -%}
{%- assign dists = site.packages | where: 'Repo', repo.slug | group_by: 'Archive' %}
<td style="text-align: left"><a href="{{ url }}">{{ repo.title }}</a></td>
<td style="text-align: left">{% include dist-list.html baseurl=url list=dists %}</td>
<td style="text-align: left">{{ repo.description }}</td>
</tr>
{%- endfor %}
</tbody>
</table>