print year on blog posts

This commit is contained in:
Jeremy Kauffman 2018-06-11 10:44:51 -04:00
parent a52f2f5372
commit 8bf516d1c6

View file

@ -12,7 +12,7 @@
<?php echo $post->getAuthorName() ?> <?php echo $post->getAuthorName() ?>
<?php echo $post->hasAuthor() && $post->hasDate() ? '&bull;' : '' ?> <?php echo $post->hasAuthor() && $post->hasDate() ? '&bull;' : '' ?>
<?php if ($post->hasDate()): ?> <?php if ($post->hasDate()): ?>
<span title="<?php echo $post->getDate()->format('F jS, Y') ?>"><?php echo $post->getDate()->format('M j') ?></span> <span title="<?php echo $post->getDate()->format('F jS, Y') ?>"><?php echo $post->getDate()->format('M j Y') ?></span>
<?php endif ?> <?php endif ?>
</div> </div>
</div> </div>