diff options
Diffstat (limited to 'src/bin')
-rwxr-xr-x | src/bin/paku | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bin/paku b/src/bin/paku index 94f8d38..1e7753e 100755 --- a/src/bin/paku +++ b/src/bin/paku @@ -516,12 +516,13 @@ sub emit_html() { for my $pkg (@{$json->{packages}}) { my $suffix = $pkg->{label} eq 'latest' ? '' : "-$pkg->{label}"; my $apt_suffix = $suffix =~ s/-/=/r; + my $ver = $pkg->{label} eq 'latest' ? $pkg->{label} : $pkg->{version}; print <<~EOF; - <li id="$pkg->{name}-$pkg->{label}"> + <li id="$pkg->{name}-$ver"> <details> <summary> - <a href="#$pkg->{name}-$pkg->{label}">$pkg->{name}</a> - ($pkg->{label}) - $pkg->{description} + <a href="#$pkg->{name}-$ver">$pkg->{name}</a> + ($ver) - $pkg->{description} </summary> <p> <a href="$pkg->{'base-url'}/">Homepage</a> |