mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-24 02:50:37 +00:00
732f514da7
We add clippy as our build — also rectifying the missing `plume-cli` build! In the next step we follow clippy's advise and fix some of the "simple" mistakes in our code, such as style or map usage. Finally, we refactor some hard bits that need extraction of new types, or refactoring of function call-types, especially those that thread thru macros, and, of course functions with ~15 parameters should probably be rethought.
16 lines
447 B
HTML
16 lines
447 B
HTML
@use templates::partials::post_card;
|
|
@use plume_models::posts::Post;
|
|
@use template_utils::*;
|
|
|
|
@(ctx: BaseContext, articles: Vec<Post>, link: &str, title: String)
|
|
|
|
@if !articles.is_empty() {
|
|
<div class="h-feed">
|
|
<h2><span class="p-name">@title</span> — <a href="@link">@i18n!(ctx.1, "View all")</a></h2>
|
|
<div class="cards spaced">
|
|
@for article in articles {
|
|
@:post_card(ctx, article)
|
|
}
|
|
</div>
|
|
</div>
|
|
}
|