diff options
author | Yorhel <git@yorhel.nl> | 2019-10-16 10:36:59 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-10-16 10:37:03 +0200 |
commit | 3f9a77c094f744f3f781bb0648f6ac2dd09038f5 (patch) | |
tree | bcc6d84064b95f562d713c261243521431a0e1b3 /lib/VNWeb/Misc/History.pm | |
parent | b7c525893bdd374d067e34d307bf0bc32df73f97 (diff) |
HTML: Make "noindex" the default
Adding 'index => 0' to all pages is error-prone, and the majority of the
pages aren't indexed. Requiring an 'index => 1' for pages that may be
indexed is less work and a safer solution.
(Doesn't affect the v2 codebase, which still requires an explicit
'noindex => 1')
Diffstat (limited to 'lib/VNWeb/Misc/History.pm')
-rw-r--r-- | lib/VNWeb/Misc/History.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/Misc/History.pm b/lib/VNWeb/Misc/History.pm index c96d07cc..07166328 100644 --- a/lib/VNWeb/Misc/History.pm +++ b/lib/VNWeb/Misc/History.pm @@ -190,7 +190,7 @@ TUWF::get qr{/(?:([upvrcsd])([1-9]\d*)/)?hist} => sub { $obj->{title} = user_displayname $obj if $type eq 'u'; my $title = $type ? "Edit history of $obj->{title}" : 'Recent changes'; - framework_ title => $title, index => 0, type => $type, dbobj => $obj, tab => 'hist', $type eq 'u' ? (pubskin => $obj) : (), + framework_ title => $title, type => $type, dbobj => $obj, tab => 'hist', $type eq 'u' ? (pubskin => $obj) : (), sub { my $filt; div_ class => 'mainbox', sub { |