]> git.bts.cx Git - cx.git/blob - cx/templates/public/list.php
Try to fix aspect ratio issues
[cx.git] / cx / templates / public / list.php
1 <?php cx_template_base('base'); ?>
2 <main>
3 <?php foreach (cx_posts_get() as $post): ?>
4 <?php $post_permalink = '/' . date('Y', $post->date) . '/' . date('m', $post->date) . '/' . $post->slug; ?>
5 <article>
6 <h1><a href="<?= cx_url($post_permalink) ?>"><?= $post->title ?></a></h1>
7 <p class="updated"><?= date('l, F jS, Y',$post->date) ?></p>
8 <?php if ($post->html_excerpt): ?>
9 <?= $post->html_excerpt ?>
10 <p><a href="<?= cx_url($post_permalink) ?>">Read more...</a></p>
11 <?php else: ?>
12 <?= $post->html_content ?>
13 <?php endif; ?>
14 </article>
15 <?php endforeach; ?>
16 </main>