✨ Relative time string in Default
This commit is contained in:
parent
f31006fb6b
commit
86d0ac3c5b
1 changed files with 7 additions and 1 deletions
|
@ -26,7 +26,13 @@
|
|||
|
||||
<!-- Creation date -->
|
||||
<div class="article-metadata flex p">
|
||||
<div><time><?php echo $page->date(); ?></time></div>
|
||||
<div>
|
||||
<?php if ($themePlugin->dateFormat() == 'relative') : ?>
|
||||
<time><?php echo $page->relativeTime() ?></time>
|
||||
<?php else : ?>
|
||||
<time><?php echo $page->date() ?></time>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
<div><?php echo $L->get('Reading time') . ': ' . $page->readingTime(); ?></div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue