feat: meilleur affichage du temps
This commit is contained in:
parent
0876630039
commit
5b5bf3ebf8
1 changed files with 6 additions and 2 deletions
|
@ -3,7 +3,11 @@
|
||||||
<article class="article container-article mb-1 h-entry">
|
<article class="article container-article mb-1 h-entry">
|
||||||
<h1 class="page-title p-name"><?php echo $page->title(); ?></h1>
|
<h1 class="page-title p-name"><?php echo $page->title(); ?></h1>
|
||||||
<?php if (!$page->isStatic() && !$url->notFound()): ?>
|
<?php if (!$page->isStatic() && !$url->notFound()): ?>
|
||||||
|
<div class="flex-that mb-1">
|
||||||
|
<time class="author-date dt-published" datetime="<?php echo $page->date(DATE_ATOM) ?>"><i>Le <?php echo $page->date('l j F Y à H:i') ?></i></time>
|
||||||
<p class="align-right pr-half"><span class="btn btn-small c-secondary"> <?php echo $page->readingTime() ?> </span></p>
|
<p class="align-right pr-half"><span class="btn btn-small c-secondary"> <?php echo $page->readingTime() ?> </span></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<div class="article-entry mb-1 e-content">
|
<div class="article-entry mb-1 e-content">
|
||||||
|
@ -17,7 +21,7 @@
|
||||||
<img alt="" src="<?php echo $page->user('profilePicture');?>" srcset="https://secure.gravatar.com/avatar/8a4aed71aeec9f65c9e098d81ff12638?s=240&d=mm&r=g 2x" class="avatar avatar-120 photo u-photo" height="120" width="120" decoding="async">
|
<img alt="" src="<?php echo $page->user('profilePicture');?>" srcset="https://secure.gravatar.com/avatar/8a4aed71aeec9f65c9e098d81ff12638?s=240&d=mm&r=g 2x" class="avatar avatar-120 photo u-photo" height="120" width="120" decoding="async">
|
||||||
<div class="author-metadata">
|
<div class="author-metadata">
|
||||||
<div class="author-pseudo">Écrit par <a href="https://kazhnuz.space" class="u-url p-name"><?php echo $page->user('nickname'); ?></a></div>
|
<div class="author-pseudo">Écrit par <a href="https://kazhnuz.space" class="u-url p-name"><?php echo $page->user('nickname'); ?></a></div>
|
||||||
<small class="author-date dt-published" datetime="<?php echo $page->date(DATE_ATOM) ?>">Le <?php echo $page->date('l j F Y à H:i') ?></small>
|
<small class="author-date p-note"><?php echo $page->user('firstname'); ?></small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue