Skip to content

Commit

Permalink
Fix Error Page Layout
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Jun 24, 2024
1 parent 9ac4d77 commit 6ae0396
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion about.page
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ images:
- /lot/y/blogger-rounders/index/3.png
author: Taufik Nurrohman
type: Markdown
version: 1.0.0
version: 1.0.1
...

This is not a clone of the original Rounders template. I didn’t make it from the original source code, but by
Expand Down
9 changes: 6 additions & 3 deletions page.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,18 @@
<?= self::comments(); ?>
<?php endif; ?>
<?php else: ?>
<p role="none"></p>
<article>
<header>
<h2>
<?= i('Error'); ?>
</h2>
</header>
<p role="status">
<?= i('%s does not exist.', 'Page'); ?>
</p>
<div>
<p role="status">
<?= i('%s does not exist.', 'Page'); ?>
</p>
</div>
</article>
<nav role="none"></nav>
<?php endif; ?>
Expand Down
4 changes: 2 additions & 2 deletions pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<?= self::pager(); ?>
<?php endif; ?>
<?php else: ?>
<p role="status">
<p role="alert">
<?php if ($site->has('part')): ?>
<?= i('No more %s to show.', 'posts'); ?>
<?php else: ?>
Expand All @@ -51,7 +51,7 @@
</p>
<?php endif; ?>
<?php else: ?>
<p role="status">
<p role="alert">
<?= i('%s does not exist.', 'Page'); ?>
</p>
<?php endif; ?>
Expand Down

0 comments on commit 6ae0396

Please sign in to comment.