Skip to content

Commit

Permalink
fix rss image relying on site.BaseURL
Browse files Browse the repository at this point in the history
  • Loading branch information
maurerle committed Jan 30, 2025
1 parent 917a032 commit fc8bb37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/rss-image.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</media:content>
{{- end -}}
{{- else if findRE `^\/.*` $path 1 -}}
{{ $path := printf "%s%s" .Site.BaseURL (strings.TrimLeft "/" $path) }}
{{ $path := printf "%s%s" site.BaseURL (strings.TrimLeft "/" $path) }}
{{- with resources.GetRemote $path -}}
<enclosure url="{{ .Permalink }}" length="" type="{{ .MediaType }}" />
<media:thumbnail url="{{ .Permalink }}" width="{{ .Width}}" height="{{ .Height}}" />
Expand Down

0 comments on commit fc8bb37

Please sign in to comment.