diff --git a/src/models/article.js b/src/models/article.js index 5cc4c10..8595b6c 100644 --- a/src/models/article.js +++ b/src/models/article.js @@ -9,6 +9,7 @@ const ArticleSchema = new Schema({ ref: 'User' }, slug: { type: String, index: { unique: true } }, + description: { type: String, required: false }, image: { type: String, required: true }, created_at: { type: Date, default: Date.now }, updated_at: { type: Date }, diff --git a/src/routes/a/[slug].svelte b/src/routes/a/[slug].svelte index 435a501..22d9500 100644 --- a/src/routes/a/[slug].svelte +++ b/src/routes/a/[slug].svelte @@ -171,7 +171,25 @@ {article.title} | HOWFEED.BIZ + + + + + + + + + {#if article.updated_at} + + {/if} + + + + + {#if article.description} + + {/if} {@html `