diff --git a/lib/decentralised_book_index_web/controllers/error_html.ex b/lib/decentralised_book_index_web/controllers/error_html.ex index 1692c35..a0eb79f 100644 --- a/lib/decentralised_book_index_web/controllers/error_html.ex +++ b/lib/decentralised_book_index_web/controllers/error_html.ex @@ -13,7 +13,7 @@ defmodule DecentralisedBookIndexWeb.ErrorHTML do # * lib/decentralised_book_index_web/controllers/error_html/404.html.heex # * lib/decentralised_book_index_web/controllers/error_html/500.html.heex # - # embed_templates "error_html/*" + embed_templates "error_html/*" # The default is to render a plain text page based on # the template name. For example, "404.html" becomes diff --git a/lib/decentralised_book_index_web/controllers/error_html/404.html.heex b/lib/decentralised_book_index_web/controllers/error_html/404.html.heex new file mode 100644 index 0000000..cf78bfc --- /dev/null +++ b/lib/decentralised_book_index_web/controllers/error_html/404.html.heex @@ -0,0 +1,49 @@ + + +
+ + + + <.live_title default="DecentralisedBookIndex" suffix=" · Page not found"> + {assigns[:page_title]} + + + + + ++ Something's went wrong. +
++ Try to refresh the page. Feel free to contact us if the problem persists. +
+ + Go to books + +