Skip to content

Commit

Permalink
Wrap in parentheses to get correct list, not boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Hermanverschooten committed Nov 17, 2024
1 parent 828a016 commit 601d8b4
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 601d8b4

Please sign in to comment.