From 5bfb9440ad5124a76f12b71d7d80848eaf154aee Mon Sep 17 00:00:00 2001 From: inhji Date: Fri, 31 Mar 2023 12:15:07 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=E2=80=9Elib/chiya=5Fweb/router.ex=E2=80=9C?= =?UTF-8?q?=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/chiya_web/router.ex | 1 + 1 file changed, 1 insertion(+) 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 From cfd17bf711fa9733329f8e623b2bf0e19e725150 Mon Sep 17 00:00:00 2001 From: inhji Date: Fri, 31 Mar 2023 13:08:05 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=E2=80=9Elib/chiya=5Fweb/components/layouts?= =?UTF-8?q?/public.html.heex=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/chiya_web/components/layouts/public.html.heex | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 %>