@use crate::templates::profiles::icon; @use crate::profiles::Profile; @use chrono::{DateTime, Utc}; @use hyaenidae_toolkit::{templates::link, Link}; @use hyaenidae_toolkit::templates::ago; @use hyaenidae_toolkit::templates::icon as tkicon; @(profile: &Profile, published: Option>, dark: bool, body: Content)
@:tkicon(&profile.view_path(), true, dark, { @if let Some(key) = profile.icon_key() { @:icon(key, &profile.name()) } })
@if let Some(name) = profile.display_name() {
@:link(&Link::current_tab(&profile.view_path()).plain(true).dark(dark), { @name })
}
@:link(&Link::current_tab(&profile.view_path()).plain(true).dark(dark), { @profile.full_handle() })
@if let Some(published) = published {
posted @:ago(published, dark)
}
@:body()