This commit is contained in:
flash 2022-02-05 03:39:56 +00:00
parent 944e1a27d0
commit 12297851f1
2 changed files with 3 additions and 3 deletions

View file

@ -192,7 +192,7 @@ $router->get('/', function() use ($db) {
<div class="index-featured"> <div class="index-featured">
<div class="index-feature"> <div class="index-feature">
<div class="index-feature-header"> <div class="index-feature-header">
<a href="//blog.flash.moe" class="index-feature-header-link"></a> <a href="/old-blog" class="index-feature-header-link" data-fm-dynload=""></a>
<div class="index-feature-header-title">Blog</div> <div class="index-feature-header-title">Blog</div>
<div class="index-feature-header-more">More</div> <div class="index-feature-header-more">More</div>
</div> </div>
@ -211,7 +211,7 @@ HTML;
$body .= <<<HTML $body .= <<<HTML
<div class="index-blog-post"> <div class="index-blog-post">
<a href="//flash.moe/blog/{$blogPost->post_id}" class="index-blog-post-link"></a> <a href="/old-blog/{$blogPost->post_id}" class="index-blog-post-link" data-fm-dynload=""></a>
<div class="index-blog-post-header"> <div class="index-blog-post-header">
<div class="index-blog-post-title">{$blogPost->post_title}</div> <div class="index-blog-post-title">{$blogPost->post_title}</div>
<div class="index-blog-post-published"><time datetime="{$dateTimeC}" title="<{$dateTimeR}">{$timeElapsed}</time></div> <div class="index-blog-post-published"><time datetime="{$dateTimeC}" title="<{$dateTimeR}">{$timeElapsed}</time></div>

View file

@ -194,7 +194,7 @@ try {
$result = $handlers->run(); $result = $handlers->run();
if(is_int($result)) if(is_int($result) && $result >= 400 && $result < 600)
$result = $router->resolve('GET', "/error/{$result}")->run(); $result = $router->resolve('GET', "/error/{$result}")->run();
if($result !== null && !is_bool($result)) { if($result !== null && !is_bool($result)) {