]> git.bts.cx Git - cx.git/blob - cx/templates/public/post.php
Fix? CSS for images in posts
[cx.git] / cx / templates / public / post.php
1 <?php cx_template_base('base'); ?>
2 <main>
3 <?php $post = cx_posts_find_post($post_id); ?>
4 <?php if ($post): ?>
5 <?php $post_permalink = '/' . date('Y', $post->date) . '/' . date('m', $post->date) . '/' . $post->slug; ?>
6 <article>
7 <h1><a href="<?= cx_url($post_permalink) ?>"><?= $post->title ?></a></h1>
8 <p class="updated"><?= date('l, F jS, Y',$post->date) ?></p>
9 <?= $post->html_content ?>
10 </article>
11 <?php else: ?>
12 <p>Nothing found.</p>
13 <?php endif; ?>
14
15 </main>