about summary refs log tree commit diff
path: root/lib/rook_web
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-02-21 02:45:55 +0100
committerMel <einebeere@gmail.com>2022-02-21 02:45:55 +0100
commitc3a46f9b8f4c11fb4ce81ab9177591238e15198b (patch)
tree7381b20dcbe2261552689b577bef312ee4910a21 /lib/rook_web
parent2907928cf3cb204a6049192175c107173cce608d (diff)
downloadrook-c3a46f9b8f4c11fb4ce81ab9177591238e15198b.tar.zst
rook-c3a46f9b8f4c11fb4ce81ab9177591238e15198b.zip
Add favicon
Diffstat (limited to 'lib/rook_web')
-rw-r--r--lib/rook_web/endpoint.ex2
-rw-r--r--lib/rook_web/templates/layout/app.html.eex6
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/rook_web/endpoint.ex b/lib/rook_web/endpoint.ex
index 31c9790..d310435 100644
--- a/lib/rook_web/endpoint.ex
+++ b/lib/rook_web/endpoint.ex
@@ -22,7 +22,7 @@ defmodule RookWeb.Endpoint do
     at: "/",
     from: :rook,
     gzip: false,
-    only: ~w(css fonts images js favicon.ico robots.txt)
+    only: ~w(css fonts images js icon robots.txt)
 
   # Code reloading can be explicitly enabled under the
   # :code_reloader configuration of your endpoint.
diff --git a/lib/rook_web/templates/layout/app.html.eex b/lib/rook_web/templates/layout/app.html.eex
index e840b54..ba90dab 100644
--- a/lib/rook_web/templates/layout/app.html.eex
+++ b/lib/rook_web/templates/layout/app.html.eex
@@ -7,6 +7,12 @@
     <title>Rook</title>
     <link rel="preconnect" href="https://fonts.gstatic.com">
     <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
+
+    <link rel="apple-touch-icon" href="<%= Routes.static_path(@conn, "/icon/apple-touch-icon.png") %>">
+    <link rel="icon" sizes="any" href="<%= Routes.static_path(@conn, "/icon/favicon.ico") %>">
+    <link rel="icon" href="<%= Routes.static_path(@conn, "/icon/favicon.svg") %>" type="image/svg+xml">
+    <link rel="manifest" href="<%= Routes.static_path(@conn, "/icon/rook.webmanifest") %>">
+
     <link rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/app.css") %>"/>
   </head>
   <body>