Skip to content

Commit

Permalink
Wrap in parentheses to get correct list, not boolean (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbernheisel authored Nov 17, 2024
2 parents 828a016 + 601d8b4 commit 1f784da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/seo/open_graph.ex
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ defmodule SEO.OpenGraph do
<meta property="og:determiner" content={"#{@item.determiner}"} />
<% end %><%= if @item.locale do %>
<meta property="og:locale" content={@item.locale} />
<% end %><%= if locales = List.wrap(@item.locale_alternate) != [] do %>
<% end %><%= if (locales = List.wrap(@item.locale_alternate)) != [] do %>
<meta :for={locale <- locales} property="og:locale:alternate" content={locale} />
<% end %><%= if @type == "book" do %>
<Book.meta content={@item.detail} />
Expand Down

0 comments on commit 1f784da

Please sign in to comment.