displays only the year in collections index items

This commit is contained in:
buttle 2022-04-28 17:59:02 +02:00
parent 92f25811e8
commit 9d042ea0ee
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ $summary = $showSummary ? $site->summary() : null;
</li> </li>
<li class="date"> <li class="date">
<?php if ($site_meta_values != null): ?> <?php if ($site_meta_values != null): ?>
<?= $site_meta_values['project_date']; ?> <?= substr($site_meta_values['project_date'], 0, 4); ?>
<?php endif; ?> <?php endif; ?>
</li> </li>
</ul> </ul>