feat: Adds link sharing document.
All checks were successful
CI / release (push) Successful in 6m5s

This commit is contained in:
2025-04-08 10:37:53 -04:00
parent f7d0018314
commit da27216fc1
7 changed files with 53 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
import HTML
/// Represents homepage link configuration.
struct HomeLink {
let icon: String
let title: String
@@ -14,6 +15,7 @@ struct HomeLink {
}
extension HomeLink {
/// Create an internal link (opens in the same tab).
static func `internal`(
_ title: String,
icon: String,
@@ -23,6 +25,7 @@ extension HomeLink {
self.init(icon: icon, title: title, description: description, href: href, linkType: .internal)
}
/// Create an external link (opens in a different tab).
static func external(
_ title: String,
icon: String,