use yew::prelude::*; use crate::pages::blog::authorcard::AuthorCard; use crate::pages::blog::content::{Author, BlogEntry}; pub struct Authors; impl Component for Authors { type Message = (); type Properties = (); fn create(_ctx: &Context) -> Self { Self } fn view(&self, _: &Context) -> Html { html! {
{ for Author::AUTHORS.map(|author| { let id = author.id; html! { } }) }
} } }