baseURL = "https://danix.xyz/"
languageCode = "it-IT"
title = "danix.xyz"
theme = "danix-xyz-hacker"
enableRobotsTXT = true

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

# Languages
[languages]
  [languages.it]
    languageName = "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 = "legal"
      pageRef = "/is/legal"
      name = "legal"
      weight = 4

  [languages.en]
    languageName = "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 = "legal"
      pageRef = "/is/legal"
      name = "legal"
      weight = 4

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

# Theme parameters
[params]
  siteName = "danix.xyz"
  author = "Danilo Macrì"
  email = "danix@danix.xyz"

  # Theme options
  syntaxHighlight = true
  lineNumbers = false
  readingTime = true
  shareButtons = true
  relatedPosts = true

  # Colors
  primaryAccent = "#a855f7"
  secondaryAccent = "#00ff88"

  # 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"

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

[[redirects]]  # Default language should be last.
  from = '/**'
  to = '/404.html'
  status = 404