~mlb/linkhut

429fbf9a034eef4e4f8de3d748a21a21e7b363cf — Matías Larre Borges 5 days ago 6872e1a
Add rel attribute to the tags and bookmark anchors
M lib/linkhut_web/controllers/link_html.ex => lib/linkhut_web/controllers/link_html.ex +1 -1
@@ 37,7 37,7 @@ defmodule LinkhutWeb.LinkHTML do

  def link_tag(assigns) do
    ~H"""
    <li><a href={@path} {@rest}><%= @tag %></a></li>
    <li><a rel="tag" href={@path} {@rest}><%= @tag %></a></li>
    """
  end


M lib/linkhut_web/templates/link/_bookmark.html.heex => lib/linkhut_web/templates/link/_bookmark.html.heex +1 -1
@@ 1,7 1,7 @@
<div class="bookmark-card">
  <div class="bookmark">
    <div data-posted-on={@link.inserted_at} data-saves={@link.saves} data-relevance={@link.score} class="title">
      <h4><a class="taggedlink" href={@link.url}><%= @link.title %></a></h4>
      <h4><a rel="nofollow" class="taggedlink" href={@link.url}><%= @link.title %></a></h4>
      <%= if @link.is_private do %>
        <span class="no-css-label"><%= gettext("Private") %></span>
      <% end %>