diff --git a/lib/chiya/notes/references.ex b/lib/chiya/notes/references.ex index fabe1b5..4729795 100644 --- a/lib/chiya/notes/references.ex +++ b/lib/chiya/notes/references.ex @@ -124,7 +124,6 @@ defmodule Chiya.Notes.References do {:error, changelog} -> Logger.warn("Reference was not added.") Logger.error(inspect(changelog)) - end end diff --git a/lib/chiya_web/components/admin_components.ex b/lib/chiya_web/components/admin_components.ex index adb3083..5abf6c5 100644 --- a/lib/chiya_web/components/admin_components.ex +++ b/lib/chiya_web/components/admin_components.ex @@ -85,16 +85,14 @@ defmodule ChiyaWeb.AdminComponents do <.link href={~p"/"} class="flex gap-3 text-sm leading-6 font-semibold text-gray-900 dark:text-gray-100 dark:hover:text-gray-300 hover:text-gray-700" - ><%= @settings.title %> + > + <%= @settings.title %> +
  • <%= if @current_user do %>
  • - <.link - href="#" - id="dark-mode-toggle" - class="text-sm leading-6" - > + <.link href="#" id="dark-mode-toggle" class="text-sm leading-6"> 🌙 @@ -103,22 +101,22 @@ defmodule ChiyaWeb.AdminComponents do <.link href={~p"/admin"} class="text-sm leading-6 text-gray-900 dark:text-gray-100 dark:hover:text-gray-300 hover:text-gray-700" - >Admin + > + Admin +
  • <.link href={~p"/user/log_out"} method="delete" class="text-sm leading-6 text-gray-900 dark:text-gray-100 dark:hover:text-gray-300 hover:text-gray-700" - >Log out + > + Log out +
  • <% else %>
  • - <.link - href="#" - id="dark-mode-toggle" - class="text-sm leading-6" - > + <.link href="#" id="dark-mode-toggle" class="text-sm leading-6"> 🌙 diff --git a/lib/chiya_web/components/public_components.ex b/lib/chiya_web/components/public_components.ex index b9acf55..4a364b5 100644 --- a/lib/chiya_web/components/public_components.ex +++ b/lib/chiya_web/components/public_components.ex @@ -31,9 +31,14 @@ defmodule ChiyaWeb.PublicComponents do

    <%= render_slot(@inner_block) %> - <%= render_slot(@subtitle) %> + + <%= render_slot(@subtitle) %> +

    -

    +

    <%= render_slot(@subtitle) %>

    diff --git a/lib/chiya_web/controllers/page_html/home.html.heex b/lib/chiya_web/controllers/page_html/home.html.heex index 4069e5e..80a7851 100644 --- a/lib/chiya_web/controllers/page_html/home.html.heex +++ b/lib/chiya_web/controllers/page_html/home.html.heex @@ -24,46 +24,54 @@ <%= if @channel do %> <%= if @channel.layout == :default do %> -
    - <%= for note <- @channel.notes do %> - - - <%= note.name %> - - <%= pretty_date(note.published_at) %> - - <% end %> -
    +
    + <%= for note <- @channel.notes do %> + + + <%= note.name %> + + <%= pretty_date(note.published_at) %> + + <% end %> +
    <% end %> <%= if @channel.layout == :gallery do %> - <% end %> <% end %>