Fix post pagebreak once again
The first article of a page was also displayed on the bottom of the previous one. This commit fixes this behavior.
This commit is contained in:
parent
3587f38bac
commit
f364393124
24
blog.php
24
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 '<item>
|
||||
if ($morePosts == 0) {
|
||||
if (isset($CMS_RSS)) {
|
||||
if (!isset($latestDisplayedPost)) {
|
||||
$latestDisplayedPost = $v->ctime;
|
||||
}
|
||||
echo '<item>
|
||||
<title>' . $v->title . '</title>
|
||||
<description><![CDATA[';
|
||||
require $v->includeFile;
|
||||
@ -269,12 +270,13 @@
|
||||
<pubDate>' . date(RSS_DATE_FORMAT, $v->ctime) . '</pubDate>
|
||||
<dc:creator>' . $v->author . '</dc:creator>
|
||||
</item>';
|
||||
} else {
|
||||
echo '<div class="post">';
|
||||
require $v->includeFile;
|
||||
renderFooter();
|
||||
echo "</div>";
|
||||
echo '<hr class="postSeparator">';
|
||||
} else {
|
||||
echo '<div class="post">';
|
||||
require $v->includeFile;
|
||||
renderFooter();
|
||||
echo "</div>";
|
||||
echo '<hr class="postSeparator">';
|
||||
}
|
||||
}
|
||||
if (($i % POSTS_PAGE_SIZE) == 0) {
|
||||
$morePosts = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user