feat: add support for custom page titles

Also put the paste ID in the title for the show page
This commit is contained in:
Akshit Garg authored and GitHub committed 2022-02-16 16:30:30 +05:30
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