fix post card intro

pull/9768/head
Thibault Duplessis 2021-09-09 20:17:08 +02:00
parent 909e7c8e59
commit 2e545feb99
1 changed files with 1 additions and 0 deletions

View File

@ -120,6 +120,7 @@ object post {
thumbnail(post, _.Small)(cls := "ublog-post-card__image"),
span(cls := "ublog-post-card__content")(
h2(cls := "ublog-post-card__title")(post.title),
showIntro option span(cls := "ublog-post-card__intro")(shorten(post.intro, 100)),
post.lived map { live => semanticDate(live.at)(ctx.lang)(cls := "ublog-post-card__over-image") },
showAuthor option userIdSpanMini(post.created.by)(ctx.lang)(cls := "ublog-post-card__over-image")
)