feature/share-libs
erb 70 lines 2.13 KB
Raw
1 <% content_for :meta_head do %>
2 <title><%= @meta_title %></title>
3 <meta name="description" content="<%= @meta_description %>">
4 <meta property="og:title" content="<%= @meta_title %>" />
5 <meta property="og:description" content="<%= @meta_description %>" />
6 <meta property="og:url" content="<%= guitar_chord_shapes_url %>" />
7 <% end %>
8
9 <% content_for :breadcrumb do %>
10 <script type="application/ld+json">
11 {
12 "@context": "http://schema.org",
13 "@type": "BreadcrumbList",
14 "itemListElement": [{
15 "@type": "ListItem",
16 "position": 1,
17 "item": {
18 "@id": "<%= root_url %>",
19 "name": "<%= t("site_name") %>"
20 }
21 },{
22 "@type": "ListItem",
23 "position": 2,
24 "item": {
25 "@id": "<%= guitar_chord_shapes_url %>",
26 "name": "<%= t("nav_chords_shapes") %>"
27 }
28 }]
29 }
30 </script>
31 <% end %>
32 <div class="row">
33 <div class="col-md-4">
34 <aside>
35 <div class="bluebox-heading">
36 <h2><%= t("guitar_chords_shape")%></h2>
37 </div>
38 <div class="events-list widget-wrap">
39 <% @chords.each_with_index do |chord, index| %>
40 <section class="event">
41 <div class="date">
42 <strong><%= index + 1 %>.</strong>
43 </div>
44 <div class="details">
45 <h1>
46 <%= link_to t("guitar_chord") + chord.name,
47 guitar_chord_shape_path(chord.name.downcase.parameterize + "-" + chord.id.to_s) %>
48 </h1>
49 <%= link_to t("see_chord_detail"),
50 guitar_chord_shape_path(chord.name.downcase.parameterize + "-" + chord.id.to_s),
51 class: "more-link" %>
52 </div>
53 </section>
54 <% end %>
55 </div>
56 </aside>
57 </div>
58 <div class="col-md-8">
59
60 <h2><%= @page.title if @page %></h2>
61 <div class="lead">
62 <%= raw @page.page_content if @page %>
63 </div>
64
65 </div>
66 </div>
67
68 <%= render "shared/partial_breadcrumbs" do %>
69 <li class="breadcrumb-item"><%= link_to t("nav_chords"), guitar_chords_path %></li>
70 <% end %>