Skip to content

Getting started guide: adding section 'outputFormats' #10

@urban-adeininger

Description

@urban-adeininger

I followed the steps in the Getting started guide.
In step 4, but I ended up with an error:

$ hugo
hugo: collected modules in 903 msTotal in 1213 ms
ERROR failed to create config from modules config: unknown output format "hedgeredirects" for kind "home"

I could only run the command hugo successfully after I added this section to my hugo.yaml config file:

outputFormats:
  hedgeheaders:
    baseName: _hedge_headers
    isPlainText: true
    mediaType: application/json
    notAlternative: true
  hedgeredirects:
    baseName: _hedge_redirects
    isPlainText: true
    mediaType: text/plain
    notAlternative: true

ToDo: The getting started guide should mention, that section outputFormats needs to be added to the hugo.yml config file, too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions