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