articles, clean up, error fixes
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user