From b44365bcb9c42e5ab9f677a67979edaf5cb6659d Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 29 Mar 2023 10:50:09 -0300 Subject: src/bin/paku.in: Remove "-latest" suffix from HTML ids --- src/bin/paku.in | 11 +++++++---- 1 file 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; -
  • +
  • - $pkg->{name} - ($ver) - $pkg->{description} + $pkg->{name} + ($label) - $pkg->{description}

    Homepage -- cgit v1.2.3