forked from CRSS/Website
Compare commits
8 commits
Author | SHA1 | Date | |
---|---|---|---|
polycord | da624182b0 | ||
polycord | 6cd420ea3c | ||
polycord | 176ae5b273 | ||
polycord | 4c31a89ccf | ||
polycord | bd758e7ce4 | ||
polycord | 3bbd209abe | ||
polycord | 4daed3196b | ||
polycord | 0cdbc204d3 |
|
@ -207,6 +207,14 @@
|
|||
}
|
||||
});
|
||||
|
||||
$router->get('/section', function() {
|
||||
global $twig;
|
||||
|
||||
$twig->addGlobal('pageUri', '/section');
|
||||
|
||||
echo $twig->render('section.twig');
|
||||
});
|
||||
|
||||
|
||||
$router->get('/u/([a-z0-9_\.]+)', function($name) {
|
||||
global $twig, $mysql, $discord;
|
||||
|
@ -224,6 +232,7 @@
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
// ---------------- Admin ---------------- //
|
||||
|
||||
$router->get('/admin', function() {
|
||||
|
|
8
template/section.twig
Normal file
8
template/section.twig
Normal file
|
@ -0,0 +1,8 @@
|
|||
{% include 'includes/head.twig' with {'pageTitle': 'section'} %}
|
||||
|
||||
{% include 'includes/hero.twig' %}
|
||||
|
||||
{% include 'includes/nav.twig' with {'page': 'section'} %}
|
||||
|
||||
<main class="pageContent container">
|
||||
<h1>this is a section i think</h1>
|
Loading…
Reference in a new issue