We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the event that an image whose filename contains whitespaces but is invoked (with resources.Get) using %20, Hugo (or Huge) fails to publish it.
resources.Get
%20
For example this file is stored at /uploads/that image needs space.jpg
/uploads/that image needs space.jpg
huge/media/Get "/uploads/that image needs space.jpg"
huge/media/Get "/uploads/that%20image%20needs%20space.jpg"
Might be upstream, or not... hence the need to investigate.
The current solution implemented for a project is to replace the %20 before invoking:
{{ $destination := replace .Destination "%20" " " }} {{ $image := partial "huge/media/Get" $destination }}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the event that an image whose filename contains whitespaces but is invoked (with
resources.Get
) using%20
, Hugo (or Huge) fails to publish it.For example this file is stored at
/uploads/that image needs space.jpg
huge/media/Get "/uploads/that image needs space.jpg"
huge/media/Get "/uploads/that%20image%20needs%20space.jpg"
Might be upstream, or not... hence the need to investigate.
The current solution implemented for a project is to replace the %20 before invoking:
The text was updated successfully, but these errors were encountered: