Explorar el Código

Better hiding of 'default' route

George Baugh hace 2 años
padre
commit
21c7db45ee
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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} ) {