diff --git a/blog.php b/blog.php index 41c7a52..6a4017b 100644 --- a/blog.php +++ b/blog.php @@ -261,6 +261,7 @@ } $i = 0; $morePosts = 0; + $firstRendered = 0; foreach($posts as $k=>$v) { if ($v->isPublic) { if (!isset($tagSearch) || in_array($tagSearch, $v->tags)) { @@ -282,11 +283,14 @@ ' . $v->author . ' '; } else { + if ($firstRendered) { + echo '
'; + } + $firstRendered = 1; echo '
'; require $v->includeFile; renderFooter(); echo "
"; - echo '
'; } } if (($i % POSTS_PAGE_SIZE) == 0) {