Przeglądaj źródła

Fix routes.pm for 138

George S. Baugh 5 lat temu
rodzic
commit
31c69f6797
1 zmienionych plików z 2 dodań i 12 usunięć
  1. 2 12
      routes.pm

+ 2 - 12
routes.pm

@@ -43,8 +43,8 @@ our %routes = (
     },
     '/talks/mostrecent.html' => {
         method   => 'GET',
-        callback => \&Trog::Routes::HTML::posts,
-        data     => { tag => ['presentations'], limit => 1 },
+        callback => \&Trog::Routes::HTML::series,
+        data     => { id => 1608661368, in_series => 1, limit => 1 },
     },
     '/talks/index.html' => {
         method   => 'GET',
@@ -69,16 +69,6 @@ my $processor = Text::Xslate->new(
     path => 'www/themes/houston.pm/templates',
 );
 
-my %paths = (
-    '/talks/index.html'      => 'Past Meetings',
-    '/talks/mostrecent.html' => 'Latest Meeting',
-    '/projects/index.html'   => 'Group Projects',
-);
-
-sub path_to_tile ($path) {
-    return $paths{$path} ? $paths{$path} : $path;
-}
-
 sub sponsors ($args, $render_cb) {
     my $out = $processor->render('sponsors.tx');
     return Trog::Routes::HTML::index($args,$render_cb, $out);