Browse Source

Add favicon

closes #6
edit
Victor Roest 2 years ago
parent
commit
37ff7e6d30
Signed by: 0x76 GPG Key ID: A3923C699D1A3BDA
  1. 2
      .gitattributes
  2. 2
      lib/dps_web/endpoint.ex
  3. 1
      lib/dps_web/templates/layout/app.html.eex
  4. BIN
      priv/static/favicon.ico
  5. BIN
      priv/static/images/favicon.png

2
.gitattributes

@ -1,3 +1,5 @@
*.ttf filter=lfs diff=lfs merge=lfs -text
*.otf filter=lfs diff=lfs merge=lfs -text
*.woff filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.ico filter=lfs diff=lfs merge=lfs -text

2
lib/dps_web/endpoint.ex

@ -21,7 +21,7 @@ defmodule DpsWeb.Endpoint do
at: "/",
from: :dps,
gzip: false,
only: ~w(css fonts images js)
only: ~w(css fonts images js favicon.ico)
# Code reloading can be explicitly enabled under the
# :code_reloader configuration of your endpoint.

1
lib/dps_web/templates/layout/app.html.eex

@ -11,6 +11,7 @@
<link rel="preload" href="<%= Routes.static_path(@conn, "/fonts/FiraSans/FiraSans-Bold.otf") %>" as="font" crossorigin>
<link rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/font.css") %>"/>
<link rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/app.css") %>"/>
<link rel="shortcut icon" type="image/png" href="<%= Routes.static_path(@conn, "/images/favicon.png") %>"/>
</head>
<body>
<main role="main" class="container">

BIN
priv/static/favicon.ico (Stored with Git LFS)

Binary file not shown.

BIN
priv/static/images/favicon.png (Stored with Git LFS)

Binary file not shown.
Loading…
Cancel
Save