Hi @davidsneighbour,
The hugo config mounts
command seems promising, but it immediately fails to render the inherited mounts from an imported module. For example, I have a very simple config.toml
:
baseURL = "/"
defaultContentLanguage = "spaceforce"
defaultContentLanguageInSubdir = true
disableKinds = ["RSS", "taxonomyTerm"]
enableMissingTranslationPlaceholders = true
[taxonomies]
tag = "tags"
category = "categories"
topic = "topics"
[module]
[[module.imports]]
ignoreConfig = false
ignoreImports = false
path = "path/to/some/module.git"
The imported module has a very complex config.toml
, which imports/mounts several other modules, but all I see in the output of the command is:
Snarkbot:space-force starves$ hugo config mounts
{
"path": "path/to/current/module.git",
"dir": "the/current/directory",
"mounts": [
{
"source": "package.json",
"target": "assets/_jsconfig/package.json"
},
{
"source": "content",
"target": "content"
},
{
"source": "data",
"target": "data"
},
{
"source": "layouts",
"target": "layouts"
},
{
"source": "i18n",
"target": "i18n"
},
{
"source": "archetypes",
"target": "archetypes"
},
{
"source": "assets",
"target": "assets"
},
{
"source": "static",
"target": "static"
}
]
}
{
"path": "path/to/some/module.git",
"dir": "/var/folders/3m/20yr1zw962q8_ccfch9bklhc0000gq/T/hugo_cache/modules/filecache/modules/pkg/mod/path/to/some/module.git@v1.1.0/",
"mounts": [
{
"source": "assets",
"target": "assets"
},
{
"source": "content",
"target": "content"
},
{
"source": "i18n",
"target": "i18n"
},
{
"source": "layouts",
"target": "layouts"
},
{
"source": "static",
"target": "static"
},
{
"source": "package.json",
"target": "assets/_jsconfig/package.json"
}
]
}