~afontaine/home

2623bda51aa75e772b2640377a006bb5a49d9e22 — Andrew Fontaine 7 months ago 762d5c7
Ensure name of tag is used in open graph

Elixir would throw when trying to put a tag struct into a template. The
tag text needs to be used instead.
1 files changed, 1 insertions(+), 1 deletions(-)

M apps/home_web/lib/home_web/templates/post/show.html.eex
M apps/home_web/lib/home_web/templates/post/show.html.eex => apps/home_web/lib/home_web/templates/post/show.html.eex +1 -1
@@ 6,7 6,7 @@
<meta property="og:article:author" content="<%= @post.author %>" />
<meta property="og:article:section" content="Software">
<%= for tag <- @post.tags do %>
  <meta property="og:article:tags" content="<%= tag %>" />
  <meta property="og:article:tags" content="<%= tag.tag %>" />
<% end %>
<article class="prose dark:prose-light mt-10 mb-8">
  <%= render_shared_with "post_header.html", post: @post do %>