little cleanups
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user