Fix link targets

This commit is contained in:
Booklordofthedings 2024-12-22 13:02:41 +01:00
parent 6fb1d6c681
commit 1ad8086f31

View file

@ -22,10 +22,11 @@ static
return toReturn; return toReturn;
} }
public static HTML LybLink(params Span<HTML> children) public static HTML LybLink(StringView target, params Span<HTML> children)
{ {
var toReturn = new HTML(params children); var toReturn = new HTML(params children);
toReturn.Name = .("a"); toReturn.Name = .("a");
toReturn.SetValue("href", target);
toReturn.AddClass("lyb-link"); toReturn.AddClass("lyb-link");
return toReturn; return toReturn;
} }