Date Formatting tweaks
This commit is contained in:
1 parent
dbdfa3bafa
commit
c5461e95bb
3 files changed
+12
-10
No files matched your search
@@ -9,7 +9,7 @@
|
||||
<div *ngFor="let article of articles" (click)="navigateToArticle(article.slug)" class="article-card">
|
||||
<h2>{{ (article.title | slice:0:45) + (article.title.length > 40 ? '...' : '')}}</h2>
|
||||
<p>{{ (article.content | slice:0:80) + (article.content.length > 80 ? '...' : '')}}</p>
|
||||
<p><small>By {{ article.authorName }} | {{ article.createdAt | date: 'short' }}</small></p>
|
||||
<p><small>By {{ article.authorName }} | {{ article.createdAt | date: 'dd/MM/yy, HH:mm' }}</small></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user