mirror of
https://github.com/eosswedenorg/apt
synced 2026-06-26 10:43:43 +02:00
Adding _layouts/repo.html
This commit is contained in:
parent
eb63a6a93c
commit
3b2ffdce87
1 changed files with 44 additions and 0 deletions
44
_layouts/repo.html
Normal file
44
_layouts/repo.html
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
---
|
||||||
|
layout: default
|
||||||
|
---
|
||||||
|
|
||||||
|
{% assign repo = page.name %}
|
||||||
|
{% assign list = site.data.index[repo].bionic %}
|
||||||
|
|
||||||
|
<h2>{{ page.title }}</h2>
|
||||||
|
|
||||||
|
<p>{{ page.description }}</p>
|
||||||
|
|
||||||
|
{% for component in site.apt.components %}
|
||||||
|
|
||||||
|
<h3>{{ component }}</h3>
|
||||||
|
|
||||||
|
{% if list[component].size > 0 %}
|
||||||
|
|
||||||
|
{% highlight bash %}
|
||||||
|
$ sudo apt-add-repository -y 'deb [arch=amd64] {{site.apt.url}}/{{repo}} bionic {{component}}'
|
||||||
|
{% endhighlight %}
|
||||||
|
|
||||||
|
<table class="d-lg-table">
|
||||||
|
<tr>
|
||||||
|
<th style="width: 20%">Name</th>
|
||||||
|
<th>Version</th>
|
||||||
|
</tr>
|
||||||
|
{% for package in list[component] %}
|
||||||
|
{% for version in package.versions %}
|
||||||
|
<tr>
|
||||||
|
{% if forloop.first == true %}
|
||||||
|
<td>{{ package.name }}</td>
|
||||||
|
{% else %}
|
||||||
|
<td class="text-center text-gray-light">-</td>
|
||||||
|
{% endif %}
|
||||||
|
<td>{{ version }}</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
{% endfor %}
|
||||||
|
</table>
|
||||||
|
{% else %}
|
||||||
|
<p>No packages</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% endfor %}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue