Skip to content

Running local server fails with mapping key "archived_version" already defined error #5100

Description

@kluged-firco

Describe the bug
When trying to start a local doc server with hugo server it fails with:

ERROR command error: failed to load config: "C:\dapr-docs-1.17\hugo.yaml:139:3": [139:3] mapping key "archived_version" already defined at [129:3]
136 | # Flag used in the "version-banner" partial to decide whether to display a
137 | # banner on every page indicating that this is an archived version of the docs.
138 | # Set this flag to "true" if you want to display the banner.
139 | archived_version: false
^
141 | # A link to latest version of the docs. Used in the "version-banner" partial to
142 | # point people to the main doc site.
143 |

This is because in commit ced831f for #5046 a second copy of the archived_version parameter block was added to hugo.yaml.

Reverting that change solves the issue.

Steps to reproduce
Follow the instructions from Readme to run a local hugo server with 1.17 branch.

Expected behavior
local web-server starts up without issues

Desktop

  • OS: Windows 11
  • Browser Firefox
  • Version 149.0

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions