2018-12-06 18:54:16 +01:00
|
|
|
@use templates::partials::post_card;
|
|
|
|
@use plume_models::posts::Post;
|
|
|
|
@use template_utils::*;
|
|
|
|
|
2019-02-02 15:23:50 +01:00
|
|
|
@(ctx: BaseContext, articles: Vec<Post>, link: &str, title: String)
|
2018-12-06 18:54:16 +01:00
|
|
|
|
2019-03-19 14:37:56 +01:00
|
|
|
@if !articles.is_empty() {
|
2018-12-08 21:52:46 +01:00
|
|
|
<div class="h-feed">
|
2019-07-11 09:34:27 +02:00
|
|
|
<h2 dir="auto"><span class="p-name">@title</span> — <a href="@link">@i18n!(ctx.1, "View all")</a></h2>
|
2019-05-18 14:09:51 +02:00
|
|
|
<div class="cards">
|
2018-12-06 18:54:16 +01:00
|
|
|
@for article in articles {
|
|
|
|
@:post_card(ctx, article)
|
|
|
|
}
|
|
|
|
</div>
|
2018-12-08 21:52:46 +01:00
|
|
|
</div>
|
2018-12-06 18:54:16 +01:00
|
|
|
}
|