pict-rs-aggregator/templates/view_collection.rs.html

35 lines
918 B
HTML
Raw Normal View History

@use crate::{Collection, Entry, State};
@use super::{layout, image, return_home};
2020-12-08 21:59:55 +00:00
@use uuid::Uuid;
@(id: Uuid, collection: &Collection, entries: &[(Uuid, Entry)], state: &State)
2020-12-08 21:59:55 +00:00
@:layout(state, &collection.title, Some(&collection.description), {
<meta property="og:url" content="@state.public_collection_path(id)" />
2020-12-08 23:32:37 +00:00
@for (_, entry) in entries {
<meta property="og:image" content="@state.image_path(entry)" />
}
}, {
2020-12-08 21:59:55 +00:00
<section>
<article>
<div class="content-group">
<h3>@collection.title</h3>
2020-12-08 21:59:55 +00:00
</div>
<div class="content-group">
<p class="subtitle">@collection.description</p>
2020-12-08 21:59:55 +00:00
</div>
</article>
<ul>
@for (_, entry) in entries {
<li class="content-group even">
<article>
@:image(entry, state)
2020-12-08 21:59:55 +00:00
</article>
</li>
}
</ul>
</section>
@:return_home(state)
2020-12-08 21:59:55 +00:00
})