Files

39 lines
1.2 KiB
Swift

import Ignite
struct Theatre: StaticPage {
@Environment(\.articles) var articles
var path = "/baby"
let title: String
init() {
self.title = "Bel Aire Backyard Theatre"
}
var body: some HTML {
VStack {
Logo(barTitle: "Bel Aire", underTitle: "Backyard Theatre")
.horizontalAlignment(.center)
Text(markdown: """
I *love* movies.
From my very first experiences in a theatre, to hot summer nights at the drive-in, I have always been in love with movies.
When our children were of "a certain age" we found it difficult to get out to see movies, so we decided to bring movies to our back yard.
It was a very good decision.
As my site is being rebuilt, you'll have to satisfy yourself with just that story. When I finish up, you'll find my adventures with backyard theatrics here.
""")
VStack {
ForEach(articles.typed("baby").reversed()) { article in
Group {
Link(article)
Text(article.metadata["description"] as? String ?? "")
.margin(.bottom, .medium)
}
}
}
}
}
}