This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user