Skip to content

Update Hugo Version and Fix Configuration #56

Description

@AliParvini

Description:

The website is currently built with Hugo v0.123.7, which is significantly outdated. Several configuration keys used in hugo.yaml have been deprecated in Hugo v0.158+ and will cause build errors in future releases. This issue covers upgrading Hugo and cleaning up the configuration file to match the new standards.


Problems:

  • Hugo version is over a year old and missing critical bug fixes and features
  • Config keys like languageCode, languageName, and languageDirection are deprecated and need to be replaced with their modern equivalents (locale, label, direction)
  • GitHub Actions workflow still pins the old Hugo version, meaning the production build is also outdated

Tasks:

  • Update Hugo version in GitHub Actions workflow to the latest stable release
  • Replace deprecated language-related keys in hugo.yaml with their new equivalents
  • Verify the site builds without any deprecation warnings after the changes
  • Test both English and Persian language versions render correctly after the update

Expected Outcome:

The site should build successfully with Hugo v0.162.1, both locally and in GitHub Actions, with no deprecation warnings in the build output. Both language versions should render correctly.

Activity

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions