StructureSite
SiteConfig
Global site configuration including metadata like language and description. It also contains options affecting the behavior of the site such as the base URL for development and production deployments.
struct SiteConfig
Topics
let copyright: String
The site’s copyright message.
let description: String
The site’s description. Also used in RSS feeds.
let developmentUrl : URL?
The development URL of the site.
let editor: String
The editor of the site. Also used in RSS feeds.
let language: String
The site’s language code.
let productionUrl : URL
The production URL of the site.
let title: String
The site’s title.
var url: URL
The applicable URL for the current build configuration.
let webmaster: String
The web master for the site. Defaults to the editor if blank.
static let defaultLanguage : String
The default language code: English (US).
Relationships
Swift
.Sendable
See Also
init(SiteConfig , content: (repeat [(each C)]), template: (repeat [Template<each C>]))
Creates an instance of Site from a set of content elements and templates. The initializer also requires a site configuration.
Current page is SiteConfig