35 lines
918 B
HTML
35 lines
918 B
HTML
@use crate::{Collection, Entry, State};
|
|
@use super::{layout, image, return_home};
|
|
@use uuid::Uuid;
|
|
|
|
@(id: Uuid, collection: &Collection, entries: &[(Uuid, Entry)], state: &State)
|
|
|
|
@:layout(state, &collection.title, Some(&collection.description), {
|
|
<meta property="og:url" content="@state.public_collection_path(id)" />
|
|
@for (_, entry) in entries {
|
|
<meta property="og:image" content="@state.image_path(entry)" />
|
|
}
|
|
}, {
|
|
<section>
|
|
<article>
|
|
<div class="content-group">
|
|
<h3>@collection.title</h3>
|
|
</div>
|
|
<div class="content-group">
|
|
<p class="subtitle">@collection.description</p>
|
|
</div>
|
|
</article>
|
|
<ul>
|
|
@for (_, entry) in entries {
|
|
<li class="content-group even">
|
|
<article>
|
|
@:image(entry, state)
|
|
</article>
|
|
</li>
|
|
}
|
|
</ul>
|
|
</section>
|
|
@:return_home(state)
|
|
})
|
|
|