Skip to content

Commit

Permalink
fix image rendering in RSS
Browse files Browse the repository at this point in the history
  • Loading branch information
stebunovd committed Jan 3, 2025
1 parent 7ea2997 commit e94a455
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions layouts/_default/_markup/render-image.rss.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
{{- $filename := .Destination }}
{{- $filename2x := printf "%s@2x%s" (path.BaseName $filename) (path.Ext $filename) }}
{{- if .Page.Resources.Get $filename2x }}
{{- $filename = $filename2x }}
{{- end }}
<img src="{{ .Page.Permalink }}{{ $filename }}" alt="{{ .Title }}">
<img src="{{ .Page.Permalink }}{{ .Destination }}" alt="{{ .Text }}">

0 comments on commit e94a455

Please sign in to comment.