Skip to content

Issue: Hugo module content directory can't be silenced #552

Description

@davidsneighbour

My repository uses a Hugo module. Both repositories are cloned into their own folders and my VSCode workspace configuration adds both folders.

Both repositories have content directories. And the content from both directories turns up on the dashboard. I would like to have only the content directory of the kollitsch.dev directory showing up. Is there any way to make Front Matter do that? The modules content directory is more or less a testing website for the module itself, not something that is part of the implementing website.

I have the configuration in .frontmatter/config/content/pagefolders but it appears that Front Matter somehow copied it into the frontmatter.json file itself.

    {
      "path": "[[workspace]]/content",
      "title": "content",
      "originalPath": "[[workspace]]/content"
    },

This seems to be the culprit leading to both roots being referenced. Is there any way to reference a single "root folder"?

If not, it's possible to fix that using Hugo's configuration. The content folder in the module could be renamed testcontent and Frontmatter would (hopefully) ignore it. But I think somehow this might be useful.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions