]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchview: add "rel=next" and "rel=prev" here, too
authorEric Wong <e@80x24.org>
Mon, 25 Apr 2016 01:10:41 +0000 (01:10 +0000)
committerEric Wong <e@80x24.org>
Mon, 25 Apr 2016 01:10:41 +0000 (01:10 +0000)
ref: https://www.w3.org/TR/html/links.html#sequential-link-types

Followup-to: c4183f56aab6 ("www: add rel=next and rel=prev navigation hints")
lib/PublicInbox/SearchView.pm

index e94a1dffc9c0b412d50dd08626f8a5225213ab5a..41d32007e79c6f5f42c34db84456fcd0e6f9ab4e 100644 (file)
@@ -126,13 +126,13 @@ sub search_nav_bot {
 
        if ($n < $total) {
                my $qs = $q->qs_html(o => $n);
-               $rv .= qq{, <a\nhref="?$qs">next</a>}
+               $rv .= qq{, <a\nhref="?$qs"\nrel=next>next</a>}
        }
        if ($o > 0) {
                $rv .= $n < $total ? '/' : ',      ';
                my $p = $o - $LIM;
                my $qs = $q->qs_html(o => ($p > 0 ? $p : 0));
-               $rv .= qq{<a\nhref="?$qs">prev</a>};
+               $rv .= qq{<a\nhref="?$qs"\nrel=prev>prev</a>};
        }
        $rv;
 }