ADD routes noticias
This commit is contained in:
@@ -9,10 +9,26 @@
|
||||
|
||||
namespace App;
|
||||
|
||||
use Routes;
|
||||
use Timber\Timber;
|
||||
|
||||
// Load Composer dependencies.
|
||||
require_once __DIR__ . '/vendor/autoload.php';
|
||||
Timber::init();
|
||||
|
||||
$site = new StarterSite();
|
||||
|
||||
// Ruta para la página principal 'noticias'
|
||||
foreach(['/es/noticias','/eu/berriak'] as $route) {
|
||||
Routes::map($route, function($params){
|
||||
$query = false;
|
||||
Routes::load('archive-noticias.php', $params, $query, 200);
|
||||
});
|
||||
}
|
||||
|
||||
// Ruta para las páginas de paginación 'noticias'
|
||||
foreach(['/es/noticias/page/:paged','/eu/berriak/page/:paged'] as $route) {
|
||||
Routes::map($route, function($params){
|
||||
$query = false;
|
||||
Routes::load('archive-noticias.php', $params, $query, 200);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user