From: Eric Wong Date: Mon, 25 Apr 2016 01:00:24 +0000 (+0000) Subject: www: add rel=next and rel=prev navigation hints X-Git-Tag: v1.0.0~594 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=c4183f56aab666b38b1c11a182231fb1f11e6a6e;p=public-inbox.git www: add rel=next and rel=prev navigation hints This can makes navigation easier with some browsers or or browser extensions. ref: https://www.w3.org/TR/html/links.html#sequential-link-types --- diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 096bff9d..d433726f 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -185,7 +185,7 @@ sub nav_footer { my $anchor = $state->{anchor_idx}; if ($last) { - $next = qq!next!; + $next = qq!next!; } if ($old_r) { $head = $cgi->path_info; diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 177a1a6f..63810dcb 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -513,12 +513,12 @@ sub html_footer { if ($p) { $p = PublicInbox::Hval->new_msgid($p); $p = $p->as_href; - $irt = "parent "; + $irt = "parent "; } else { $irt = ' ' x length('parent '); } if ($next) { - $irt .= "next "; + $irt .= "next "; } else { $irt .= ' ' x length('next '); }