docbrown/app/views/layouts/_social_media.html.erb
Michael Kohl b4bfcd3ebc
SiteConfig view refactoring (#9286)
* Clean up payment pointer in top shell

* Simplify handling of social media icons

* Also guard against empty strings

* Only traverse hash once
2020-07-14 11:55:57 +02:00

10 lines
426 B
Text

<% SiteConfig.social_media_handles.each do |social_media_type, handle| %>
<% next if handle.blank? %>
<a
href="<%= "https://#{social_media_type}.com/#{handle}" %>"
target="_blank"
class="crayons-link crayons-link--secondary mx-2"
rel="noopener">
<%= inline_svg_tag("#{social_media_type}.svg", aria: true, title: social_media_type.capitalize, class: "crayons-icon social-media-svg") %>
</a>
<% end %>