{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/hugo-theme/latest.json",
  "title": "Hugo theme config file schema",
  "description": "This file contains metadata about the theme and its creator or creators. Hugo only recognizes theme.toml file, any other files are not accepted. Learn more at <https://github.com/gohugoio/hugoThemes#themetoml>",
  "x-lintel": {
    "source": "https://www.schemastore.org/hugo-theme.json",
    "sourceSha256": "73d493d75f6c01b7a5c560e2aee8b724a42119af3e00677309a23409c12141bb"
  },
  "type": "object",
  "properties": {
    "$schema": {
      "$comment": "Because the theme config file (`theme.toml`) only works with TOML format, so we don't need to support this property.",
      "description": "Hugo will not recognize the theme config file if it is JSON or YAML format. Please use theme.toml file.",
      "type": "null"
    },
    "authors": {
      "description": "For themes that have multiple authors",
      "items": {
        "$ref": "#/$defs/author-data"
      },
      "minItems": 2,
      "type": "array",
      "title": "theme authors"
    },
    "author": {
      "$ref": "#/$defs/author-data",
      "description": "For themes that have single author",
      "title": "theme author"
    },
    "description": {
      "description": "This info is used by Hugo theme store: <https://themes.gohugo.io>",
      "title": "theme description",
      "type": "string"
    },
    "features": {
      "items": {
        "type": "string"
      },
      "title": "theme features",
      "type": "array"
    },
    "homepage": {
      "default": "https://",
      "description": "This info is used by Hugo theme store: <https://themes.gohugo.io>",
      "format": "uri",
      "title": "website of the theme",
      "type": "string"
    },
    "license": {
      "description": "Reference: <https://choosealicense.com>",
      "title": "Theme License",
      "type": "string"
    },
    "licenselink": {
      "default": "https://",
      "format": "uri",
      "title": "Link to theme's license",
      "type": "string"
    },
    "min_version": {
      "description": "Since the version **0.54.0**, Hugo started using full semver. Therefore, it is required to be `X.Y.Z` format. For instance: `0.54` is incorrect, `0.54.0` is correct.",
      "minLength": 5,
      "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$",
      "title": "Minimum Hugo Version",
      "type": "string"
    },
    "name": {
      "description": "This info is used by Hugo theme store: <https://themes.gohugo.io>",
      "title": "Theme Name",
      "type": "string"
    },
    "original": {
      "type": "object",
      "default": {
        "author": "",
        "repo": "https://"
      },
      "description": "For themes that port an existing theme",
      "properties": {
        "author": {
          "title": "name of original author",
          "type": "string"
        },
        "homepage": {
          "format": "uri",
          "title": "his/her website",
          "type": "string"
        },
        "repo": {
          "description": "Link to source code of original theme",
          "format": "uri",
          "title": "author website",
          "type": "string"
        }
      },
      "required": [
        "author",
        "repo"
      ],
      "title": "original theme",
      "additionalProperties": false
    },
    "tags": {
      "description": "This info is used by Hugo theme store: <https://themes.gohugo.io>",
      "items": {
        "type": "string"
      },
      "title": "theme tags",
      "type": "array"
    }
  },
  "required": [
    "name",
    "min_version"
  ],
  "additionalProperties": false,
  "$comment": "https://github.com/gohugoio/hugoThemes#themetoml",
  "$defs": {
    "author-data": {
      "type": "object",
      "default": {
        "name": ""
      },
      "properties": {
        "homepage": {
          "format": "uri",
          "title": "author website",
          "type": "string"
        },
        "name": {
          "title": "author name",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "additionalProperties": false
    }
  },
  "x-taplo-info": {
    "authors": [
      "ngdangtu (https://gitlab.com/ngdangtu)"
    ],
    "patterns": [
      "^(theme.toml)$"
    ]
  }
}
