diff --git a/www/frames/default_frame.php b/www/frames/default_frame.php index e1989c7..0018c1b 100644 --- a/www/frames/default_frame.php +++ b/www/frames/default_frame.php @@ -46,7 +46,7 @@ require_once (__DIR__ . '/../internals/website.php'); Home - Project Euler + Project Euler Blog diff --git a/www/frames/error_frame.php b/www/frames/error_frame.php index e6f4058..14e7085 100644 --- a/www/frames/error_frame.php +++ b/www/frames/error_frame.php @@ -27,7 +27,7 @@ require_once (__DIR__ . '/../internals/website.php');
Home - Project Euler + Project Euler Blog Programs Tools diff --git a/www/index.php b/www/index.php index 8029657..585f5ca 100644 --- a/www/index.php +++ b/www/index.php @@ -61,6 +61,8 @@ $URL_RULES = [ 'url' => ['blogpost', 'view'], 'target' => 'blog_view.php', 'options' => [ ], 'parameter' => [ 'id' => '%GET%', 'subview' => '' ], ], [ 'url' => ['adventofcode'], 'target' => 'adventofcode_year.php', 'options' => [ ], 'parameter' => [ 'year' => '' ], ], + [ 'url' => ['projecteuler'], 'target' => 'projecteuler.php', 'options' => [ ], 'parameter' => [ ], ], + [ 'url' => ['adventofcode', '?{year}'], 'target' => 'adventofcode_year.php', 'options' => [ ], 'parameter' => [ 'year' => '%URL%' ], ], [ 'url' => ['adventofcode', '?{year}', '?{day}'], 'target' => 'adventofcode_day.php', 'options' => [ ], 'parameter' => [ 'year' => '%URL%', 'day' => '%URL%' ], ], @@ -89,3 +91,5 @@ $site->serve($URL_RULES); //TODO support for different color schemes // should be possible to change with just a few constant in config.scss // a (little) bit more hue in default scheme + +//TODO AOC panel not responsive diff --git a/www/internals/modules/euler.php b/www/internals/modules/euler.php index 9a03f7b..1836877 100644 --- a/www/internals/modules/euler.php +++ b/www/internals/modules/euler.php @@ -106,5 +106,10 @@ class Euler implements IWebsiteModule if ($warn != null) return $warn; return ['result'=>'ok', 'message' => '']; } + + public function getOverviewURL() + { + return '/blog/1/Project_Euler_with_Befunge'; + } } diff --git a/www/pages/projecteuler.php b/www/pages/projecteuler.php new file mode 100644 index 0000000..02e1a15 --- /dev/null +++ b/www/pages/projecteuler.php @@ -0,0 +1,12 @@ + + +setForcedRedirect($SITE->modules->Euler()->getOverviewURL()); +?>