about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-04-25 01:00:24 +0000
committerEric Wong <e@80x24.org>2016-04-25 01:00:24 +0000
commitc4183f56aab666b38b1c11a182231fb1f11e6a6e (patch)
tree3c173e883b4ab02a6e2969948573f54cdb85ed86 /lib
parente43b93b82d515f06afa4c0ba787f45c28ab1450e (diff)
downloadpublic-inbox-c4183f56aab666b38b1c11a182231fb1f11e6a6e.tar.gz
This can makes navigation easier with some browsers or
or browser extensions.

ref: https://www.w3.org/TR/html/links.html#sequential-link-types
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/Feed.pm2
-rw-r--r--lib/PublicInbox/View.pm4
2 files changed, 3 insertions, 3 deletions
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!<a\nhref="?$param=$last">next</a>!;
+                $next = qq!<a\nhref="?$param=$last"\nrel=next>next</a>!;
         }
         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 = "<a\nhref=\"$upfx$p/\">parent</a> ";
+                        $irt = "<a\nhref=\"$upfx$p/\"rel=prev>parent</a> ";
                 } else {
                         $irt = ' ' x length('parent ');
                 }
                 if ($next) {
-                        $irt .= "<a\nhref=\"$upfx$next/\">next</a> ";
+                        $irt .= "<a\nhref=\"$upfx$next/\"\nrel=next>next</a> ";
                 } else {
                         $irt .= ' ' x length('next ');
                 }