From f4d3d8eecd44a17cc5558a2df7787ee206177137 Mon Sep 17 00:00:00 2001 From: Rory Hinnen Date: Wed, 13 May 2026 02:30:15 -0500 Subject: [PATCH] little cleanups --- Content/baby/article/lobby.md | 1 + Content/baby/article/programming.md | 1 + Content/baby/article/why.md | 1 + Content/battlefleet/article/chaos.md | 1 + Content/battlefleet/article/eldar.md | 2 ++ Content/battlefleet/article/imperial.md | 2 ++ Content/battlefleet/article/necron.md | 1 + Content/battlefleet/article/rebel.md | 1 + Content/battlefleet/article/rebels.md | 2 +- Content/battlefleet/article/scarus.md | 1 + Content/battlefleet/article/tau.md | 1 + Sources/ArticlePages/BattlefleetStory.swift | 33 +++++++++++++++++++ Sources/ArticlePages/Story.swift | 1 + .../{CustomStory.swift => TheatreStory.swift} | 2 +- Sources/Site.swift | 3 +- 15 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 Sources/ArticlePages/BattlefleetStory.swift rename Sources/ArticlePages/{CustomStory.swift => TheatreStory.swift} (94%) diff --git a/Content/baby/article/lobby.md b/Content/baby/article/lobby.md index 3e092f1..ceb7d0b 100644 --- a/Content/baby/article/lobby.md +++ b/Content/baby/article/lobby.md @@ -6,6 +6,7 @@ tags: motivation, theatre published: true image: ../../images/lobbyCokeCorndog.jpg title: Lobby +layout: TheatreStory --- Snacks are an important part of a drive in theater. The traditional foods of the American Drive-in aren't exactly considered healthy, but that doesn't mean they have to be bad. Unfortunately, most of these foods can be bought for too much money in the local mega-mart, and they're not good. diff --git a/Content/baby/article/programming.md b/Content/baby/article/programming.md index b8a6fd4..b0cb1a4 100644 --- a/Content/baby/article/programming.md +++ b/Content/baby/article/programming.md @@ -6,6 +6,7 @@ tags: motivation, theatre published: true image: title: Programming +layout: TheatreStory --- What are you going to show? diff --git a/Content/baby/article/why.md b/Content/baby/article/why.md index 59b6cd5..e9d1e0f 100644 --- a/Content/baby/article/why.md +++ b/Content/baby/article/why.md @@ -6,6 +6,7 @@ tags: motivation, theatre published: true image: ../../images/SoundOfMusic.jpeg title: Why? +layout: TheatreStory --- When I was 4, my mother took me to a theater while we waited for my father. In a hot, drab little desert town, the asphalt baked the same shade as dirt, we bought tickets to another world. Beyond the ticket counter, we fell into a dark, cool, bright musical world called the Sound of Music. diff --git a/Content/battlefleet/article/chaos.md b/Content/battlefleet/article/chaos.md index e25e9d5..ea7f6bf 100644 --- a/Content/battlefleet/article/chaos.md +++ b/Content/battlefleet/article/chaos.md @@ -6,6 +6,7 @@ tags: Battlefleet Gothic, Scarus, Fiction published: false image: title: Signs of Chaos +layout: BattlefleetStory --- # Signs of Chaos diff --git a/Content/battlefleet/article/eldar.md b/Content/battlefleet/article/eldar.md index 43d31ea..89a0ae0 100644 --- a/Content/battlefleet/article/eldar.md +++ b/Content/battlefleet/article/eldar.md @@ -6,6 +6,8 @@ tags: Battlefleet Gothic, Scarus, Fiction published: false image: title: The Pirate Prince +layout: BattlefleetStory + --- # The Pirate Prince diff --git a/Content/battlefleet/article/imperial.md b/Content/battlefleet/article/imperial.md index d0711b5..30bac1d 100644 --- a/Content/battlefleet/article/imperial.md +++ b/Content/battlefleet/article/imperial.md @@ -6,6 +6,8 @@ tags: Battlefleet Gothic, Scarus, Fiction published: false image: title: Imperial Fleets +layout: BattlefleetStory + --- # Fleet Composition for the Scarus Subsector diff --git a/Content/battlefleet/article/necron.md b/Content/battlefleet/article/necron.md index b3cd6db..9fb6ea9 100644 --- a/Content/battlefleet/article/necron.md +++ b/Content/battlefleet/article/necron.md @@ -6,6 +6,7 @@ tags: Battlefleet Gothic, Scarus, Fiction published: false image: title: Xeno-Archeological Expeditions +layout: BattlefleetStory --- # Xeno-Archeological Expeditions diff --git a/Content/battlefleet/article/rebel.md b/Content/battlefleet/article/rebel.md index 6e16c24..4e61d6e 100644 --- a/Content/battlefleet/article/rebel.md +++ b/Content/battlefleet/article/rebel.md @@ -6,6 +6,7 @@ tags: Battlefleet Gothic, Scarus, Fiction published: false image: title: The Rebel Prince +layout: BattlefleetStory --- # The Rebels Prince diff --git a/Content/battlefleet/article/rebels.md b/Content/battlefleet/article/rebels.md index 772606b..b3788ea 100644 --- a/Content/battlefleet/article/rebels.md +++ b/Content/battlefleet/article/rebels.md @@ -7,7 +7,7 @@ tags: Battlefleet Gothic, Scarus, Rules published: true image: title: Rebel Fleet List -joniMitchell: bothSides +layout: BattlefleetStory --- # Rebel Fleets diff --git a/Content/battlefleet/article/scarus.md b/Content/battlefleet/article/scarus.md index c5c98bc..c0614a1 100644 --- a/Content/battlefleet/article/scarus.md +++ b/Content/battlefleet/article/scarus.md @@ -6,6 +6,7 @@ tags: Battlefleet Gothic, Scarus, Fiction published: true image: title: Subector Scarus +layout: BattlefleetStory --- # Subsector Scarus Subsector Scarus is to the north of Segmentum Terra, in the north east corner of Segmentum Obscurus. diff --git a/Content/battlefleet/article/tau.md b/Content/battlefleet/article/tau.md index 537a022..4bba8ba 100644 --- a/Content/battlefleet/article/tau.md +++ b/Content/battlefleet/article/tau.md @@ -6,6 +6,7 @@ tags: Battlefleet Gothic, Scarus, Fiction published: false image: title: The T'au Inevitablity +layout: BattlefleetStory --- # The T'au Inevitability diff --git a/Sources/ArticlePages/BattlefleetStory.swift b/Sources/ArticlePages/BattlefleetStory.swift new file mode 100644 index 0000000..264fa35 --- /dev/null +++ b/Sources/ArticlePages/BattlefleetStory.swift @@ -0,0 +1,33 @@ +// +// CustomStory.swift +// IgniteSamples +// https://www.github.com/twostraws/Ignite +// See LICENSE for license information. +// + +import Foundation +import Ignite + +struct BattlefleetStory: ArticlePage { + var body: some HTML { + if let image = article.image { + Image(image, description: article.imageDescription) + .resizable() + } + + Text(article.title) + .font(.title1) + .horizontalAlignment(.center) + + Text(article.text) + + if let tagLinks = article.tagLinks() { + HStack(spacing: .xSmall) { + ForEach(tagLinks) { link in + link.font(.title3) + } + } + } + + } +} diff --git a/Sources/ArticlePages/Story.swift b/Sources/ArticlePages/Story.swift index fb2be90..21d2665 100644 --- a/Sources/ArticlePages/Story.swift +++ b/Sources/ArticlePages/Story.swift @@ -12,6 +12,7 @@ struct Story: ArticlePage { var body: some HTML { Text(article.title) .font(.title1) + .horizontalAlignment(.center) if let image = article.image { Image(image, description: article.imageDescription) diff --git a/Sources/ArticlePages/CustomStory.swift b/Sources/ArticlePages/TheatreStory.swift similarity index 94% rename from Sources/ArticlePages/CustomStory.swift rename to Sources/ArticlePages/TheatreStory.swift index 899b064..7b35241 100644 --- a/Sources/ArticlePages/CustomStory.swift +++ b/Sources/ArticlePages/TheatreStory.swift @@ -8,7 +8,7 @@ import Foundation import Ignite -struct CustomStory: ArticlePage { +struct TheatreStory: ArticlePage { var body: some HTML { if let image = article.image { Image(image, description: article.imageDescription) diff --git a/Sources/Site.swift b/Sources/Site.swift index b4009a0..4fa76a8 100644 --- a/Sources/Site.swift +++ b/Sources/Site.swift @@ -44,6 +44,7 @@ struct Hinnen: Site { var articlePages: [any ArticlePage] { Story() - CustomStory() + BattlefleetStory() + TheatreStory() } }