diff --git a/blog.php b/blog.php index 1c61f97..ffa318e 100644 --- a/blog.php +++ b/blog.php @@ -254,11 +254,12 @@ if ($v->isPublic) { if (!isset($tagSearch) || in_array($tagSearch, $v->tags)) { if ($i++ >= $postsSkip) { - if (isset($CMS_RSS)) { - if (!isset($latestDisplayedPost)) { - $latestDisplayedPost = $v->ctime; - } - echo ' + if ($morePosts == 0) { + if (isset($CMS_RSS)) { + if (!isset($latestDisplayedPost)) { + $latestDisplayedPost = $v->ctime; + } + echo ' ' . $v->title . ' includeFile; @@ -269,12 +270,13 @@ ' . date(RSS_DATE_FORMAT, $v->ctime) . ' ' . $v->author . ' '; - } else { - echo '
'; - require $v->includeFile; - renderFooter(); - echo "
"; - echo '
'; + } else { + echo '
'; + require $v->includeFile; + renderFooter(); + echo "
"; + echo '
'; + } } if (($i % POSTS_PAGE_SIZE) == 0) { $morePosts = 1;