commit
659c134df8
1 changed files with 2 additions and 5 deletions
|
@ -1,6 +1,8 @@
|
||||||
defmodule ChiyaWeb.PageController do
|
defmodule ChiyaWeb.PageController do
|
||||||
use ChiyaWeb, :controller
|
use ChiyaWeb, :controller
|
||||||
|
|
||||||
|
plug :put_layout, html: {ChiyaWeb.Layouts, :public}
|
||||||
|
|
||||||
def home(conn, _params) do
|
def home(conn, _params) do
|
||||||
settings = conn.assigns.settings
|
settings = conn.assigns.settings
|
||||||
|
|
||||||
|
@ -11,7 +13,6 @@ defmodule ChiyaWeb.PageController do
|
||||||
end
|
end
|
||||||
|
|
||||||
render(conn, :home,
|
render(conn, :home,
|
||||||
layout: {ChiyaWeb.Layouts, "public.html"},
|
|
||||||
channel: channel,
|
channel: channel,
|
||||||
page_title: "Home"
|
page_title: "Home"
|
||||||
)
|
)
|
||||||
|
@ -23,7 +24,6 @@ defmodule ChiyaWeb.PageController do
|
||||||
|> Chiya.Channels.preload_channel_public()
|
|> Chiya.Channels.preload_channel_public()
|
||||||
|
|
||||||
render(conn, :channel,
|
render(conn, :channel,
|
||||||
layout: {ChiyaWeb.Layouts, "public.html"},
|
|
||||||
channel: channel,
|
channel: channel,
|
||||||
page_title: channel.name
|
page_title: channel.name
|
||||||
)
|
)
|
||||||
|
@ -33,7 +33,6 @@ defmodule ChiyaWeb.PageController do
|
||||||
tag = Chiya.Tags.get_tag_by_slug!(tag_slug)
|
tag = Chiya.Tags.get_tag_by_slug!(tag_slug)
|
||||||
|
|
||||||
render(conn, :tag,
|
render(conn, :tag,
|
||||||
layout: {ChiyaWeb.Layouts, "public.html"},
|
|
||||||
tag: tag,
|
tag: tag,
|
||||||
page_title: tag.name
|
page_title: tag.name
|
||||||
)
|
)
|
||||||
|
@ -47,7 +46,6 @@ defmodule ChiyaWeb.PageController do
|
||||||
render_error(conn, :not_found)
|
render_error(conn, :not_found)
|
||||||
else
|
else
|
||||||
render(conn, :note,
|
render(conn, :note,
|
||||||
layout: {ChiyaWeb.Layouts, "public.html"},
|
|
||||||
note: note,
|
note: note,
|
||||||
page_title: note.name,
|
page_title: note.name,
|
||||||
changeset: changeset
|
changeset: changeset
|
||||||
|
@ -60,7 +58,6 @@ defmodule ChiyaWeb.PageController do
|
||||||
user = Chiya.Accounts.get_user!(1)
|
user = Chiya.Accounts.get_user!(1)
|
||||||
|
|
||||||
render(conn, :about,
|
render(conn, :about,
|
||||||
layout: {ChiyaWeb.Layouts, "public.html"},
|
|
||||||
note: note,
|
note: note,
|
||||||
user: user,
|
user: user,
|
||||||
page_title: "About"
|
page_title: "About"
|
||||||
|
|
Loading…
Reference in a new issue