Compare commits

...

8 commits
main ... main

Author SHA1 Message Date
polycord da624182b0 rendering section i think 2024-07-25 19:29:48 +03:00
polycord 6cd420ea3c revert the fast commit 2024-07-25 19:09:51 +03:00
polycord 176ae5b273 fast commiting 2024-07-25 19:09:19 +03:00
polycord 4c31a89ccf revert 2024-07-25 19:06:16 +03:00
polycord bd758e7ce4 sdfsdf 2024-07-25 19:05:12 +03:00
polycord 3bbd209abe reverting 2024-07-25 19:01:07 +03:00
polycord 4daed3196b commiting 2024-07-25 19:00:12 +03:00
polycord 0cdbc204d3 trying to add a section 2024-07-25 18:55:59 +03:00
2 changed files with 17 additions and 0 deletions

View file

@ -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
View 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>