baseURL = "https://danix.xyz/"
title = "danix.xyz"
theme = "danix-xyz-hacker"
enableRobotsTXT = true
enableEmoji = true

# Theme parameters
[params]
  siteName = "danix.xyz"
  author = "Danilo Macrì"
  email = "danix@danix.xyz"
  twitterHandle = "danixland"
  readingTime = true
  shareButtons = true
  relatedPosts = true
  primaryAccent = "#a855f7"
  secondaryAccent = "#00ff88"

# Output format definitions
[outputFormats]
  [outputFormats.JSON]
    name = "JSON"
    mediaType = "application/json"
    baseName = "search-index"
    isPlainText = true

# Output formats
[outputs]
  home = ["HTML", "JSON"]
  section = ["HTML"]
  page = ["HTML"]

# Hugo Pipes
[minify]
  minifyOutput = false
  disableXML = false

# Syntax highlighting with Chroma
[markup]
  [markup.highlight]
    noClasses          = false
    lineNos            = true
    lineNumbersInTable = true
    tabWidth           = 2
    guessSyntax        = true
    codeFences         = true

# Languages
[languages]
  [languages.it]
    label = "IT"
    contentDir = "content/it"
    weight = 1
    [languages.it.params]
      locale = "it_IT"
      siteDescription = "Blatero di varie cose."

    # Italian menu with language-aware links
    [[languages.it.menus.main]]
      identifier = "articles"
      pageRef = "/articles"
      name = "articles"
      weight = 1

    [[languages.it.menus.main]]
      identifier = "about"
      pageRef = "/is"
      name = "about"
      weight = 2

    [[languages.it.menus.main]]
      identifier = "contact"
      pageRef = "/is/here"
      name = "here"
      weight = 3

    [[languages.it.menus.main]]
      identifier = "gitrepo"
      url = "https://git.danix.xyz/"
      name = "gitrepo"
      weight = 4
      [languages.it.menus.main.params]
        external = true

    [[languages.it.menus.main]]
      identifier = "repository"
      pageRef = "/repository"
      name = "repo"
      weight = 5

    [[languages.it.menus.main]]
      identifier = "legal"
      pageRef = "/is/legal"
      name = "legal"
      weight = 6

  [languages.en]
    label = "EN"
    contentDir = "content/en"
    weight = 2
    [languages.en.params]
      locale = "en_US"
      siteDescription = "I ramble about stuff."

    # English menu with language-aware links
    [[languages.en.menus.main]]
      identifier = "articles"
      pageRef = "/articles"
      name = "articles"
      weight = 1

    [[languages.en.menus.main]]
      identifier = "about"
      pageRef = "/is"
      name = "about"
      weight = 2

    [[languages.en.menus.main]]
      identifier = "contact"
      pageRef = "/is/here"
      name = "here"
      weight = 3

    [[languages.en.menus.main]]
      identifier = "gitrepo"
      url = "https://git.danix.xyz/"
      name = "gitrepo"
      weight = 4
      [languages.en.menus.main.params]
        external = true

    [[languages.en.menus.main]]
      identifier = "repository"
      pageRef = "/repository"
      name = "repo"
      weight = 5

    [[languages.en.menus.main]]
      identifier = "legal"
      pageRef = "/is/legal"
      name = "legal"
      weight = 6

# Taxonomies
[taxonomies]
  tag = "tags"
  category = "categories"

# Article types with color mapping
[params.articleTypes.life]
  label = "Life"
  color_dark = "#f59e0b"
  color_light = "#d97706"

[params.articleTypes.photo]
  label = "Photo"
  color_dark = "#ec4899"
  color_light = "#be185d"

[params.articleTypes.link]
  label = "Link"
  color_dark = "#38bdf8"
  color_light = "#0284c7"

[params.articleTypes.quote]
  label = "Quote"
  color_dark = "#00ff88"
  color_light = "#008f5a"

[params.articleTypes.tech]
  label = "Tech"
  color_dark = "#a855f7"
  color_light = "#7c3aed"

# Related content configuration
[related]
  threshold = 65
  includeNewer = true
  toLower = true

  [[related.indices]]
    name = "categories"
    weight = 100

  [[related.indices]]
    name = "tags"
    weight = 80

[[redirects]]
  from = '/it/**'
  to = '/it/404.html'
  status = 404

[[redirects]]
  from = '/**'
  to = '/404.html'
  status = 404
