baseURL: https://help.happydomain.org/
defaultContentLanguage: en
defaultContentLanguageInSubdir: true
enableGitInfo: true

theme: hugo-theme-relearn

languages:
  en:
    title: "happyDomain help center"
    languageName: "English"
    weight: 1
    params:
      landingPageName: "<i class='fas fa-home'></i> Home"

    menu:
      shortcuts:
        - name: "<i class='fab fa-gitlab'></i> Project sources"
          url: "https://framagit.org/happyDomain/"
        - name: "<i class='fas fa-comments'></i> Matrix channel"
          url: "https://matrix.to/#/#happyDNS:matrix.org"
        - name: "<i class='fab fa-mastodon'></i> Mastodon"
          url: "https://floss.social/@happyDomain"

  fr:
    title: "happyDomain centre d'aide"
    weight: 2
    languageName: "Français"
    params:
      landingPageName: "<i class='fas fa-home'></i> Accueil"

    menu:
      shortcuts:
        - name: "<i class='fab fa-gitlab'></i> Sources"
          url: "https://framagit.org/happyDomain/"
        - name: "<i class='fas fa-comments'></i> Canal Matrix"
          url: "https://matrix.to/#/#happyDNS:matrix.org"
        - name: "<i class='fab fa-mastodon'></i> Mastodon"
          url: "https://floss.social/@happyDomain"

params:
  editURL: "https://framagit.org/happyDNS/help/-/blob/master/content/"
  author:
    name: "The happyDNS team"
  # Wordmark logo handled by the theme's logo system (replaces the old
  # layouts/partials/logo.html override that broke after the theme update).
  logo:
    src: "/img/happyDomain.png"
  # The wordmark already reads "happyDomain", so don't render a text title
  # next to it (a single space resolves to an empty logo title).
  linkTitle: " "
  showVisitedLinks: true
  hideAuthorEmail: true
  mermaid: false
  # "auto" follows the OS light/dark preference: light -> green, dark ->
  # relearn-dark. Both must be declared as variants so the theme attaches the
  # logo to each (the logo is variant-gated since the theme update); otherwise
  # the logo disappears in dark mode.
  themeVariant:
    - identifier: auto
      auto: ["green", "relearn-dark"]
    - identifier: green
    - identifier: relearn-dark

# The relearn theme attaches CSS classes to generated blocks (e.g. the
# `children` shortcode appends `{class="children ..."}` after its list).
# Goldmark only interprets that as block attributes when block parsing is
# enabled; otherwise it is rendered as literal text.
markup:
  goldmark:
    parser:
      attribute:
        block: true
    renderer:
      unsafe: true

outputs:
  home: ["HTML", "RSS", "PRINT"]
