Skip to content

Commit e5b3544

Browse files
committed
Add explicit identifier to book page & cards
1 parent 1354b86 commit e5b3544

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

content/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ unless books.empty?
1818

1919
<a href="<%= book.path %>"><img src="<%= cover.path(rep: :medium) %>" width="<%= cover["width_medium"] %>" class="book-cover-card"></a>
2020
<% end %>
21-
<div class="book-info" title="<%= "#{book[:title]} de #{book[:author]}"%>">
21+
<div id="book-<%= book[:isbn] %>" class="book-info" title="<%= "#{book[:title]} de #{book[:author]}"%>">
2222
<div class="book-header">
2323
<h2 class="book-title"><a href="<%= book.path %>"><%= book[:title] %></a></h2>
2424
<% if book[:favorite] || false %>

layouts/book.html.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<div id="<%= "book-#{item[:isbn]}" %>">
12
<h2 class="book-title">
23
<%= @item[:title] %>
34
<% if @item[:favorite] || false %>
@@ -37,3 +38,4 @@ unless @item.fetch(:linked_books, []).empty?
3738
<% end %>
3839
</ul>
3940
<% end %>
41+
</div>

0 commit comments

Comments
 (0)