articles, clean up, error fixes

This commit is contained in:
Rory Hinnen
2026-05-08 11:02:29 -05:00
parent 82b40351f0
commit 0ba6511d14
18 changed files with 189 additions and 202 deletions
+6 -9
View File
@@ -13,17 +13,15 @@ import Ignite
/// components with builtIn icons, external links and custom attributes.
struct SocialFooter: HTML {
let icons = [
Image(systemName: "github"),
Image(systemName: "twitter"),
Image(systemName: "youtube"),
Image(systemName: "mastodon")
Image(systemName: "gitlab"),
Image(systemName: "mastodon"),
Image(systemName: "bluesky")
]
let urlStrings = [
"https://github.com/twostraws",
"https://twitter.com/twostraws",
"https://youtube.com/@twostraws",
"https://mastodon.social/@twostraws"
"https://gitlab.com/roryhinnen",
"https://twit.social/@roryh",
"https://bsky.app/profile/rory.hinnen.us"
]
var body: some HTML {
@@ -37,7 +35,6 @@ struct SocialFooter: HTML {
}
}
}
.margin(.top, .xLarge)
.font(.title2)
}
}
+2 -3
View File
@@ -9,10 +9,9 @@ import Ignite
/// Displays the version of Ignite the site was built with and the publishing date.
struct VersionInfo: HTML {
private let dateFormat = Date.FormatStyle().month(.defaultDigits).day(.defaultDigits).year(.twoDigits)
private let dateFormat = Date.FormatStyle().day(.defaultDigits).month(.wide).year(.extended())
var body: some HTML {
Text("\(Ignite.version) · Updated \(Date.now.formatted(dateFormat))")
.horizontalAlignment(.center)
Text("Updated \(Date.now.formatted(dateFormat))")
.foregroundStyle(.gray)
}
}
+25
View File
@@ -0,0 +1,25 @@
//
// altIgniteFooter.swift
// IgniteStarter
//
// Created by Rory on 5/8/26.
//
import Ignite
/// Displays "Created in Swift with Ignite", with a link back to the Ignite project on GitHub.
/// Including this is definitely not required for your site, but it's most appreciated 🙌
public struct IgniteFooterAlt: HTML {
public init() {}
public var body: some HTML {
Text {
"Created in Swift with "
Link(Ignite.version, target: URL(static: "https://github.com/twostraws/Ignite"))
" "
}
.foregroundStyle(.gray)
.horizontalAlignment(.center)
}
}