Sha256: 51e95e9556273bbd3ce135f41b327bd09a8b6ceb8ff440c2eb28ec4f1f39b9e2
Contents?: true
Size: 1.35 KB
Versions: 94
Compression:
Stored size: 1.35 KB
Contents
<% raise "Missing icon 'color' key in header landing page block" if local_assigns['icon'] && !local_assigns['icon']['color'] raise "Missing icon 'name' key in header landing page block" if local_assigns['icon'] && !local_assigns['icon']['name'] raise "Missing 'title' key in header landing page block" unless local_assigns['title'] %> <h1 class="Vlt-title--icon <%= "Vlt-title--#{local_assigns['title']['align']}" if local_assigns['title']['align'] %>" id="<%= local_assigns['title']['text'].parameterize %>"> <% if local_assigns['icon'] %> <svg class="Vlt-<%= local_assigns['icon']['color'] %>"> <use xlink:href="<%= local_assigns['icon']['name'].start_with?("Brand") ? "/symbol/volta-brand-icons.svg##{local_assigns['icon']['name']}" : "/symbol/volta-icons.svg#Vlt-#{local_assigns['icon']['name']}" %>"></use> </svg> <% end %> <%= local_assigns['title']['text'] %> </h1> <% if local_assigns['subtitle'] %> <% if local_assigns['subtitle']['align'] %> <div class="Vlt-<%= local_assigns['subtitle']['align'] %>"> <% end %> <p class="<%= local_assigns['subtitle']['type'] == 'small' ? '' : 'p-large' %>"> <%= local_assigns['subtitle']['text'].render_markdown({skip_paragraph_surround: true}) %> </p> <% if local_assigns['subtitle']['align'] %> </div> <% end %> <% end %>
Version data entries
94 entries across 94 versions & 1 rubygems