51 lines
1.1 KiB
Swift
51 lines
1.1 KiB
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 = Home()
|
|
var layout = MainLayout()
|
|
|
|
var lightTheme: (any Theme)? = LightTheme()
|
|
var darkTheme: (any Theme)? = DarkTheme()
|
|
|
|
var favicon: URL? { URL(static: "/favicon/favicon.ico") }
|
|
|
|
var robotsConfiguration = Robots()
|
|
var feedConfiguration = FeedConfiguration(mode: .full, contentCount: 20, image: .init(url: "https://www.example.com/images/icon32.png", width: 32, height: 32))
|
|
|
|
var staticPages: [any StaticPage] {
|
|
Battlefleet()
|
|
Library()
|
|
Adventures()
|
|
Legends()
|
|
MGA()
|
|
Theatre()
|
|
}
|
|
|
|
var articlePages: [any ArticlePage] {
|
|
Story()
|
|
BattlefleetStory()
|
|
TheatreStory()
|
|
}
|
|
}
|