]> git.bts.cx Git - cx.git/blobdiff - cx/templates/public/pages/post.php
Go back to the edit page after editing a post/page
[cx.git] / cx / templates / public / pages / post.php
index 4b7993d9b3bf5f68a977d04e8ae704113182bf4e..a4123c00fac3d6addc7572c63eabc5d9968f49c9 100644 (file)
@@ -6,7 +6,7 @@
 <?php if ($post): ?>
        <article>
                <h1><a href="<?= cx_url($post_permalink) ?>"><?= $post->title ?></a></h1>
 <?php if ($post): ?>
        <article>
                <h1><a href="<?= cx_url($post_permalink) ?>"><?= $post->title ?></a></h1>
-               <p class="updated"><?= date('l, F jS, Y',$post->date) ?></p>
+               <?php if ($post->is_page == false): ?><p class="updated"><?= date('l, F jS, Y',$post->date) ?></p><?php endif; ?>
                <?= $post->html_content ?>
        </article>
 <?php else: ?>
                <?= $post->html_content ?>
        </article>
 <?php else: ?>