aboutsummaryrefslogtreecommitdiffstats
path: root/views/index.php
blob: f969f82c3bec93dfb789024c0e3a0ff277b4dccd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?php foreach ($postsYearList as $year => $postsList) { ?>
<h3><?php echo $this->e($year); ?></h3>
    <ul class="index">
<?php foreach ($postsList as $post) { ?>
<?php if ($post['publish']) { ?>
        <li>
            <a href="blog/<?php echo $this->e($post['fileName']); ?>"><?php echo $this->e($post['title']); ?></a> <small><?php echo $this->e($post['published']); ?></small>
        </li>
<?php } ?>
<?php } ?>
    </ul>
<?php } ?>