diff --git a/lib/chiya_web/components/layouts/public.html.heex b/lib/chiya_web/components/layouts/public.html.heex index 584b614..cb2fa6b 100644 --- a/lib/chiya_web/components/layouts/public.html.heex +++ b/lib/chiya_web/components/layouts/public.html.heex @@ -1,12 +1,14 @@
+ <%= for channel <- @channels %> <.link - href={~p"/n/about"} + href={~p"/#{channel.slug}"} class="text-xs font-semibold leading-6 text-theme-base hover:text-theme-base/75" > - About + <%= channel.name %> + <% end %>
diff --git a/lib/chiya_web/router.ex b/lib/chiya_web/router.ex index 8467060..af9a0de 100644 --- a/lib/chiya_web/router.ex +++ b/lib/chiya_web/router.ex @@ -18,6 +18,7 @@ defmodule ChiyaWeb.Router do pipeline :public do plug :put_root_layout, {ChiyaWeb.Layouts, :root_public} plug :fetch_identities + plug :fetch_public_channels end pipeline :api do