gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
74.5k stars 7.44k forks source link

Symlinks cannot be used for images in Hugo 123 any more. #12164

Closed rakino closed 6 months ago

rakino commented 6 months ago

I made a test configuration in this repo, layout listed below:

.
├── config.toml
├── content
│   └── posts
│       └── test
│           ├── index.md
│           └── test.png -> ../../../test.png
├── go.mod
└── test.png

In Hugo 122:

image

In Hugo 123:

image

jmooring commented 6 months ago

This is correct. With v0.123.0 and later you must use module mounts instead.

https://gohugo.io/getting-started/directory-structure/#union-file-system https://gohugo.io/hugo-modules/configuration/#module-configuration-mounts

rakino commented 6 months ago

Thank you for the explanation! :)

github-actions[bot] commented 5 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.