Add page titles to public pages
This commit is contained in:
@ -5,11 +5,11 @@ defmodule OutlookWeb.ArtikelController do
|
||||
|
||||
def index(conn, _params) do
|
||||
artikel = Artikel.list_artikel()
|
||||
render(conn, :index, artikel: artikel)
|
||||
render(conn, :index, artikel: artikel, page_title: "Artikel")
|
||||
end
|
||||
|
||||
def show(conn, %{"id" => id}) do
|
||||
artikel = Artikel.get_artikel!(id)
|
||||
render(conn, :show, artikel: artikel)
|
||||
render(conn, :show, artikel: artikel, page_title: artikel.title)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user