Hi. I have a Hugo website and recently moved out a certain content folder (not ALL content) into a module where it is mounted via the following (config/_default/module.toml):
[[mounts]]
source = "documentation/"
target = "content/components"
The folder documentation in that module is mapped into my website's content/components folder, and Hugo does its thing with that.
What is working:
- Hugo - the folder's contents appear on the website
- single content file editing with Frontmatter - the frontmatter sidebar is there and working
What is not working:
- the posts/pages from the mounted folder do not appear on the dashboard.
My configuration is scattered into folders, and the content folder config is this:
{
"$schema": "https://frontmatter.codes/config/content.pagefolders.schema.json",
"title": "Components",
"path": "[[workspace]]/../hugo-modules/documentation",
"contentTypes": ["component"]
}
I tried various path values ([[workspace]]/documentation, [[workspace]]/content/components, etc) with no luck.
My workspace looks like this:
|
|-kollitsch.dev (the website folder, also containing the workspace configuration)
|-hugo-modules (folder with the module(s)
|-hugo-theme (another module with the theme)
To test this you can clone the three repos into a folder next to each other, then open the workspace inside of kollitsch.dev.
It appears that [[workspace]] is relative to the location where the configuration is saved, not the "actual" workspace (one level above).
Is there any way to configure the content module into the dashboard using a relative path?
Hi. I have a Hugo website and recently moved out a certain content folder (not ALL content) into a module where it is mounted via the following (config/_default/module.toml):
The folder
documentationin that module is mapped into my website's content/components folder, and Hugo does its thing with that.What is working:
What is not working:
My configuration is scattered into folders, and the content folder config is this:
{ "$schema": "https://frontmatter.codes/config/content.pagefolders.schema.json", "title": "Components", "path": "[[workspace]]/../hugo-modules/documentation", "contentTypes": ["component"] }I tried various path values (
[[workspace]]/documentation,[[workspace]]/content/components, etc) with no luck.My workspace looks like this:
|
|-kollitsch.dev (the website folder, also containing the workspace configuration)
|-hugo-modules (folder with the module(s)
|-hugo-theme (another module with the theme)
To test this you can clone the three repos into a folder next to each other, then open the workspace inside of kollitsch.dev.
It appears that
[[workspace]]is relative to the location where the configuration is saved, not the "actual" workspace (one level above).Is there any way to configure the content module into the dashboard using a relative path?