Skip to content

Commit 353e03b

Browse files
authored
fixes HTML error, p is not allowed as a child of span (#242)
This affected post previews. Changing span for div fixes the issue.
1 parent 3d3ca7b commit 353e03b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/school_house_web/templates/post/_post_preview.html.heex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<% end %>
1010
</div>
1111
<%= link(to: Routes.post_path(@conn, :show, @post.slug), class: "block mt-4 prose dark:prose-dark") do %>
12-
<span class="text-xl font-semibold"><%= raw @post.title %></span>
13-
<span class="mt-3 text-base"><%= raw @post.excerpt %></span>
12+
<div class="text-xl font-semibold"><%= raw @post.title %></div>
13+
<div class="mt-3 text-base"><%= raw @post.excerpt %></div>
1414
<% end %>
1515
<div class="flex items-center mt-6">
1616
<div class="flex-shrink-0">

0 commit comments

Comments
 (0)