Translating by filename - calling translated page resources

Is this format correct? If it is, how does one call the translated images in templates and markdown?


└───content
    │   _index.fr.md
    │   _index.md
    │
    └───blog
        │   _index.fr.md
        │   _index.md
        │
        └───hugo-tips
                featured.fr.jpg
               featured.jpg
                _index.fr.md
                _index.md

Note: The solution here comes close for markdown. But how can it be modified to factor in resized images?

For markdown pages

For templates

{{- with or (.Resources.Get "featured.*" )  (Resources.Get "featured.fr.*") }}
<!--- All the image code goes here -->
{{- end }}

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.