# Site metadata, paths, themes, and logo
#
# Consumed by build-config at compile time (UnifiedSiteConfig).
# Editing languages here is the only change needed to add a new language.

let site_c = import "site/contracts.ncl" in

{
  site = {
    name             = "Website",
    languages        = ["en", "es"],
    default_language = "en",
  } | site_c.SiteMetadata,

  paths = {
    i18n            = "site/i18n/locales",
    content         = "site/content",
    themes          = "site/config/themes",
    assets          = "site/public",
    migrations      = "rustelo/migrations",
    email_templates = "site/templates/email",
    work            = "works-pv",
  } | site_c.SitePaths,

  themes = {
    default   = "default",
    available = ["default", "dark", "corporate"],
  } | site_c.ThemeConfig,

  logo = {
    light_src      = "/images/logos/site-logo-b.png",
    dark_src       = "/images/logos/site-logo-w.png",
    alt = "Site logo",
    show_in_nav    = true,
    show_in_footer = true,
    width          = null,
    height         = null,
  } | site_c.LogoConfig,
}
