battlefleet updated
This commit is contained in:
@@ -1,26 +1,37 @@
|
||||
import Ignite
|
||||
import Foundation
|
||||
|
||||
struct Battlefleet: StaticPage {
|
||||
@Environment(\.articles) var articles
|
||||
var path = "/battlefleet"
|
||||
let title: String
|
||||
let subtitle: String
|
||||
|
||||
init() {
|
||||
self.title = "Battlefleet: Subsector Scarus"
|
||||
self.title = "Battlefleet:"
|
||||
self.subtitle = "Subsector Scarus"
|
||||
}
|
||||
|
||||
var body: some HTML {
|
||||
VStack {
|
||||
Logo(barTitle: String(title.split(separator: " ").first ?? ""), underTitle: "Subsector Scarus")
|
||||
Logo(barTitle: title, underTitle: subtitle)
|
||||
.horizontalAlignment(.center)
|
||||
Link("Battlefleet Gothic Remastered Digital Rules", target: "/epubs/BattlefleetGothicDigitalRemaster.epub")
|
||||
Link("Rebels List", target: "article/rebels")
|
||||
Link("About Subsector Scarus", target: "article/scarus")
|
||||
Text("Battlefleet Obscuras: Sector Scarus")
|
||||
Text("Prince Magos Charlemange: Rebel")
|
||||
Text("Prince CuCulain: Eldar Pirates")
|
||||
Text("Chaos Raiders: Thousand Sons")
|
||||
Text("Archeo Xenos: Necrons")
|
||||
Text("Commonwealth: T'au")
|
||||
VStack {
|
||||
Link("Battlefleet Gothic Remastered Digital Rules", target: "/epubs/BattlefleetGothicDigitalRemaster.epub")
|
||||
Text(markdown: "The _Battlefleet: Gothic_ rules formatted for epub.")
|
||||
}
|
||||
.margin(.bottom, .medium)
|
||||
VStack {
|
||||
ForEach(articles.typed("battlefleet").reversed()) { article in
|
||||
Group {
|
||||
Link(article)
|
||||
Text(article.metadata["description"] as? String ?? "")
|
||||
.margin(.bottom, .medium)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
SocialFooter()
|
||||
.margin(.top, .large)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user