Skip to content

Commit

Permalink
fix image (#27391)
Browse files Browse the repository at this point in the history
* adds condition

Signed-off-by: Brian Deutsch <brian.deutsch@datadoghq.com>

* expand scope

Signed-off-by: Brian Deutsch <brian.deutsch@datadoghq.com>

---------

Signed-off-by: Brian Deutsch <brian.deutsch@datadoghq.com>
  • Loading branch information
bgdeutsch authored Feb 3, 2025
1 parent 8fad7af commit bb59f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/integrations/_markup/render-image.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{{- $url := split $img "/" -}}
{{- $app_listings_bucket := "dd-app-listings" -}}

{{- if strings.Contains .Destination "https://raw.githubusercontent.com" -}}
{{- if or (strings.Contains .Destination "https://raw.githubusercontent.com") (strings.Contains .Destination "https://s3.amazonaws.com/") -}}
<img src="{{ (.Destination | safeURL) }}"
{{- with .PlainText }} alt="{{ . }}"{{ end -}}
{{- with .Title }} title="{{ . }}"{{ end -}}
Expand Down

0 comments on commit bb59f35

Please sign in to comment.