diff options
| author | Mel <einebeere@gmail.com> | 2022-02-21 02:45:55 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-02-21 02:45:55 +0100 |
| commit | c3a46f9b8f4c11fb4ce81ab9177591238e15198b (patch) | |
| tree | 7381b20dcbe2261552689b577bef312ee4910a21 /lib | |
| parent | 2907928cf3cb204a6049192175c107173cce608d (diff) | |
| download | rook-c3a46f9b8f4c11fb4ce81ab9177591238e15198b.tar.zst rook-c3a46f9b8f4c11fb4ce81ab9177591238e15198b.zip | |
Add favicon
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/rook_web/endpoint.ex | 2 | ||||
| -rw-r--r-- | lib/rook_web/templates/layout/app.html.eex | 6 |
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> |
