Files
saga-table-test/Sources/Site/Metadata.swift
Michael Housh 0c6b84a872
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 2m50s
feat: Initial commit.
2025-12-12 13:13:14 -05:00

28 lines
772 B
Swift

import Foundation
import Saga
/// Represents constants about the site.
enum SiteMetadata {
#if DEBUG
static let url = URL(string: "http://localhost:8080")!
#else
static let url = URL(string: "https://mhoush.com")!
#endif
static let name = "mhoush"
static let author = "Michael Housh"
/// Summary used for metadata / twitter card for home page,
/// also displayed at bottom of articles.
static let summary = """
Test saga tables.
"""
/// The default twitter image when linking to home page.
static let twitterImage = "/static/images/home-twitter-image.png"
}
/// Represents valid metadata for the files that are not an `article`.
struct PageMetadata: Metadata {
/// The section of the website for the file.
let section: String?
}