44 lines
866 B
Swift
44 lines
866 B
Swift
|
|
import Ignite
|
|
|
|
@main
|
|
struct IgniteWebsite {
|
|
static func main() async {
|
|
var site = Hinnen()
|
|
|
|
do {
|
|
try await site.publish()
|
|
} catch {
|
|
print(error.localizedDescription)
|
|
}
|
|
}
|
|
}
|
|
|
|
struct Hinnen: Site {
|
|
var name = "Hinnen Underground"
|
|
var titleSuffix = ""
|
|
var url = URL(static: "https://www.hinnen.us")
|
|
var builtInIconsEnabled = true
|
|
|
|
var author = "Rory Hinnen"
|
|
|
|
var homePage = Index()
|
|
var layout = MainLayout()
|
|
|
|
var lightTheme: (any Theme)? = LightTheme()
|
|
var darkTheme: (any Theme)? = DarkTheme()
|
|
|
|
var favicon: URL? { URL(static: "/favicon/favicon.ico") }
|
|
|
|
var staticPages: [any StaticPage] {
|
|
Battlefleet()
|
|
Library()
|
|
Adventures()
|
|
Legends()
|
|
MGA()
|
|
Theatre()
|
|
Rebels()
|
|
ScarusAbout()
|
|
}
|
|
}
|