Skip to content

After migrating to Hugo module, can no longer load FontAwesome files #1285

@EspadaV8

Description

@EspadaV8

I have followed the guide on the Docsy site (https://www.docsy.dev/docs/updating/convert-site-to-module/) to switch from a git submodule to a Hugo module, and most things seem to be working, but now I get a 404 when attempting to load any of the FontAwesome files. Checking the mod graph and it looks correct to me

> docker compose exec local hugo mod graph
gitlab.com/xxx/yyy github.com/google/docsy@v0.5.0
gitlab.com/xxx/yyy github.com/google/docsy/dependencies@v0.5.0
github.com/google/docsy/dependencies@v0.5.0 github.com/twbs/bootstrap@v4.6.1+incompatible
github.com/google/docsy/dependencies@v0.5.0 github.com/FortAwesome/Font-Awesome@v0.0.0-20210804190922-7d3d774145ac

The page is just a generic 404 page when attempting to view the file

image

I have commented out the theme line in config.toml and added the module information in

[module]
  proxy = "direct"
  # uncomment line below for temporary local development of module
  # replacements = "github.com/google/docsy -> ../../docsy"
  # [module.hugoVersion]
  #   extended = true
  #   min = "0.73.0"
  [[module.imports]]
    path = "github.com/google/docsy"
    # disable = false
  [[module.imports]]
    path = "github.com/google/docsy/dependencies"
    # disable = false

I think the only major difference is that I'm running Hugo locally via a docker-compose file. Not sure if there is a change there that's needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already existsmodule

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions