Change file name for resized image resources

Never say never.

There is an open issue about creating a “rename function”, but I think people have succesfully used concat as a hacky workaround, e.g.:

{{ $img := $img.Resize "100x100" }}
{{ $img := slice $img | resources.Concat "favicon.png" }}

Above is totally untested.

1 Like