diff options
Diffstat (limited to '')
-rwxr-xr-x | src/bin/paku.in | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/bin/paku.in b/src/bin/paku.in index 7f7c726..ca43aa6 100755 --- a/src/bin/paku.in +++ b/src/bin/paku.in @@ -725,13 +725,16 @@ sub emit_html() { my $guix_suffix = $pkg->{label} eq 'latest' ? '' : '@' . $pkg->{label} =~ s/-/./gr; my $suffix = $pkg->{label} eq 'latest' ? '' : "-$pkg->{label}"; my $apt_suffix = $suffix =~ s/-/=/r; - my $ver = $pkg->{label} eq 'latest' ? $pkg->{label} : $pkg->{version}; + my $id = $pkg->{name} . ( + $pkg->{label} eq 'latest' ? '' : "-$pkg->{version}" + ); + my $label = $pkg->{label} eq 'latest' ? 'latest' : $pkg->{version}; print <<~EOF; - <li id="$pkg->{name}-$ver"> + <li id="$id"> <details> <summary> - <a href="#$pkg->{name}-$ver">$pkg->{name}</a> - ($ver) - $pkg->{description} + <a href="#$id">$pkg->{name}</a> + ($label) - $pkg->{description} </summary> <p> <a href="$pkg->{homepage}">Homepage</a> |