diff --git a/docs/lib/sage_rails/app/views/sage_components/_sage_hero.html.erb b/docs/lib/sage_rails/app/views/sage_components/_sage_hero.html.erb index 0a867238da..7117612a52 100644 --- a/docs/lib/sage_rails/app/views/sage_components/_sage_hero.html.erb +++ b/docs/lib/sage_rails/app/views/sage_components/_sage_hero.html.erb @@ -11,7 +11,7 @@ #{image_tag(component.image, image_options)} - ).html_safe + ).html_safe if component.image.present? %>
- <% if component.cta_attributes.present? %> + <% if component.cta_attributes.present? && artwork.present? %> <%= "#{key}='#{value}'".html_safe %> @@ -55,9 +55,11 @@ <%= artwork %> <% else %> -
- <%= artwork %> -
+ <% if artwork.present? %> +
+ <%= artwork %> +
+ <% end %> <% end %>