Procházet zdrojové kódy

Better hiding of 'default' route

George Baugh před 2 roky
rodič
revize
21c7db45ee
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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} ) {