浏览代码

Better hiding of 'default' route

George Baugh 2 年之前
父节点
当前提交
21c7db45ee
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/Trog/Routes/HTML.pm

+ 2 - 2
lib/Trog/Routes/HTML.pm

@@ -49,7 +49,7 @@ our $categorybar  = 'categories.tx';
 our %routes = (
     default => {
         callback => \&Trog::Routes::HTML::setup,
-        noindex  => 1,
+        nomap    => 1,
     },
     '/index' => {
         method   => 'GET',
@@ -1275,7 +1275,7 @@ sub sitemap ($query) {
 
         # Return the map of static routes
         $route_type = 'Static Routes';
-        @to_map     = grep { !defined $routes{$_}->{captures} && !$routes{$_}->{auth} && !$routes{$_}->{noindex} } keys(%routes);
+        @to_map     = grep { !defined $routes{$_}->{captures} && !$routes{$_}->{auth} && !$routes{$_}->{noindex} && !$routes{$_}->{nomap} } keys(%routes);
     }
     elsif ( !$query->{map} ) {