Feature.link: a card's name may point elsewhere

An https URL on a feature renders its name as an outbound link -
an announcement's programme page, a venue. Validated on load.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Bendik Aagaard Lynghaug
2026-08-30 14:39:58 +02:00
co-authored by Claude Fable 5
parent 7a0724af7f
commit 73efa6a4eb
3 changed files with 36 additions and 1 deletions
+10 -1
View File
@@ -945,7 +945,16 @@ fn AlternativeCard(
let name = feature.name.clone();
move || !name.is_empty()
}>
<h3>{feature.name.clone()}</h3>
<h3>
{match feature.link.clone() {
Some(href) => view! {
<a href=href target="_blank" rel="noopener noreferrer">
{feature.name.clone()}
</a>
}.into_any(),
None => feature.name.clone().into_any(),
}}
</h3>
</Show>
<Show when={
let description = feature.description.clone();