]> git.bts.cx Git - cx.git/commitdiff
Hide date on pages
authorBen Sherratt <redacted>
Sat, 4 Jul 2026 17:52:48 +0000 (18:52 +0100)
committerBen Sherratt <redacted>
Sat, 4 Jul 2026 17:53:27 +0000 (18:53 +0100)
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>
-               <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: ?>