feat: add support for custom page titles
Also put the paste ID in the title for the show page
This commit is contained in:
1 parent
de365b36ad
commit
5820652ac1
2 files changed
+7
-2
No files matched your search
@@ -28,7 +28,8 @@ defmodule KetbinWeb.PageController do
|
||||
render(conn, "show.html",
|
||||
paste: paste,
|
||||
show_edit: show_edit,
|
||||
extension: List.first(tail) || ""
|
||||
extension: List.first(tail) || "",
|
||||
page_title: paste.id
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user