mirror of
https://github.com/eosswedenorg/apt
synced 2026-06-17 04:40:03 +02:00
_layouts/package.html: fix descriptions longer than one line.
This commit is contained in:
parent
5991690910
commit
8ab5775d7c
1 changed files with 11 additions and 1 deletions
|
|
@ -5,7 +5,17 @@ layout: default
|
|||
{% assign base_url = repo | append: '/' | append: page.distribution | relative_url %}
|
||||
<h2>Package: {{ page.name }} ({{ page.versions.first.version }}) [<a href="{{ repo | relative_url }}">{{ repo }}</a>/<a href="{{ base_url }}">{{ page.distribution }}</a>:<a href="{{ base_url }}#{{ page.component }}">{{ page.component }}</a>]</h2>
|
||||
|
||||
<h3>{{ page.description | title }}</h3>
|
||||
{% assign desc = page.description | newline_to_br | split: '<br />' %}
|
||||
|
||||
<h3>{{ desc | first | capitalize }}</h3>
|
||||
|
||||
{% if desc.size > 1 %}
|
||||
<p>
|
||||
{% for line in desc offset:1 %}
|
||||
{{ line }}
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% include package-list.html title="Dependencies" list=page.depends %}
|
||||
{% include package-list.html title="Conflicts" list=page.conflicts %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue