Language URL for images

Hello and welcome to this forum!

Hugo’s multilingual functionality even respects ‘multilingual images’. This is an interesting article.

A hero image is part of the layout. So it’s usually good practice to include them in a template file and not in the content part of a markdown file.

This is a simple approach:

{{ with .Params.hero_image }}
  {{ $image := $.Resources.GetMatch . }}
  {{ $image = $image.Resize "1200x" }}
  <img src="{{ $image.Permalink }}">
{{ end }}