Sha256: f87817d6a5481c6ce6695331ecfe96966cddd0422e25818883fa6d4d14f158fa

Contents?: true

Size: 842 Bytes

Versions: 4

Compression:

Stored size: 842 Bytes

Contents

<% if Trestle.config.site_logo %>
  <% if Trestle.config.site_logo_small %>
    <%= image_tag(Trestle.config.site_logo, class: "visible-xs-inline visible-lg-inline", alt: Trestle.config.site_title) %>
    <%= image_tag(Trestle.config.site_logo_small, class: "visible-sm-inline visible-md-inline", alt: Trestle.config.site_title) %>
  <% else %>
    <%= image_tag(Trestle.config.site_logo) %>
  <% end %>
<% elsif Trestle.config.site_logo_small %>
  <%= image_tag(Trestle.config.site_logo_small, alt: "") %>
  <span class="visible-xs-inline visible-lg-inline"><%= Trestle.config.site_title %></span>
<% else %>
  <span class="visible-xs-inline visible-lg-inline"><%= Trestle.config.site_title %></span>
  <span class="visible-sm-inline visible-md-inline"><%= Trestle.config.site_title.split(/ /).map(&:first).first(3).join %></span>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trestle-0.8.13 app/views/trestle/shared/_title.html.erb
trestle-0.8.12 app/views/trestle/shared/_title.html.erb
trestle-0.8.11 app/views/trestle/shared/_title.html.erb
trestle-0.8.10 app/views/trestle/shared/_title.html.erb