diff --git a/site/templates/blog.php b/site/templates/blog.php index 5755c75..ccc1765 100644 --- a/site/templates/blog.php +++ b/site/templates/blog.php @@ -1,16 +1,16 @@ - children()->sortBy('date', 'desc'); +children()->sortBy('date', 'desc')->paginate(5); - // Nach Kategorie (Tag) filtern - if($tag = param('tag')) { - $posts = $posts->filterBy('tags', $tag, ','); - } - ?> +// Nach Kategorie (Tag) filtern +if ($tag = param('tag')) { + $posts = $posts->filterBy('tags', $tag, ','); +} +?> - +
@@ -22,8 +22,9 @@
- tags()->split() as $tag): ?> - + tags()->split() as $tag): ?> +
@@ -37,33 +38,62 @@

summary() ?>

author()->toUser()): ?> -
-
- avatar()): ?> - - -
-

- +

+
+ avatar()): ?> + + +
+

+

username() ?>
-

-

role()->title() ?>

+

+

role()->title() ?>

+
-
- - - + +pagination(); ?> +hasPages()): ?> + + + + +
Alle Beiträge anzeigen
- - - \ No newline at end of file + \ No newline at end of file