Skip to content

Commit

Permalink
Add categories
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph committed May 23, 2018
1 parent c529378 commit 5d9109f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions site/templates/blog-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,8 @@
// Render alphabetical list of tags + show number of posts for each tag + render an alphabetical jumplist of tags
$content .= $blog->renderTags($page->children);// children => the individual tag pages

$limit = 3;// number of posts to list per category
$content .= "<h2>$page->title</h2>";
// Render list of categories showing a maximum of 3 posts titles per category
$content .= $blog->renderCategories($page->children, $limit);// children => the individual category pages

0 comments on commit 5d9109f

Please sign in to comment.