Skip to content
Snippets Groups Projects
Commit 36a68a45 authored by Antonin COQUET's avatar Antonin COQUET
Browse files

fix: display updated_at instead of published_at

parent e923b3d2
No related branches found
No related tags found
3 merge requests!178release V1.10.0,!154Dev,!140fix: display updated_at instead of published_at
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</div> </div>
<div fxLayout="column" class="informations"> <div fxLayout="column" class="informations">
<div fxLayout="row"> <div fxLayout="row">
{{ post.published_at | date: 'shortDate' }} {{ post.updated_at | date: 'shortDate' }}
</div> </div>
<div fxLayout="row">par {{ post.author }}</div> <div fxLayout="row">par {{ post.author }}</div>
</div> </div>
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<div fxLayout="column" class="informations" *ngIf="post.tags[0] && post.tags[0].slug != 'appels'"> <div fxLayout="column" class="informations" *ngIf="post.tags[0] && post.tags[0].slug != 'appels'">
<div fxLayout="row"> <div fxLayout="row">
{{ post.published_at | date: 'shortDate' }} {{ post.updated_at | date: 'shortDate' }}
</div> </div>
<div fxLayout="row">par {{ post.author }}</div> <div fxLayout="row">par {{ post.author }}</div>
</div> </div>
......
...@@ -4,6 +4,7 @@ import { Tag } from './tag.model'; ...@@ -4,6 +4,7 @@ import { Tag } from './tag.model';
export class Post { export class Post {
id: number; id: number;
published_at: Date; published_at: Date;
updated_at: Date;
title: string; title: string;
excerpt: string; excerpt: string;
feature_image: string; feature_image: string;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment