add favicon

This commit is contained in:
sloane 2024-02-24 09:04:35 -05:00
parent f9af48bca6
commit 102f513da8
4 changed files with 9 additions and 0 deletions

2
.gitignore vendored
View file

@ -28,3 +28,5 @@ sloane_sh-*.tar
/.elixir_ls/
/priv/output/
.DS_Store

Binary file not shown.

After

Width:  |  Height:  |  Size: 889 B

View file

@ -10,6 +10,7 @@ defmodule SloaneSH.Build do
ctx
|> build_pages()
|> build_posts()
|> copy_img()
end
def build_pages(%Context{} = ctx) do
@ -53,4 +54,9 @@ defmodule SloaneSH.Build do
err -> Logger.error("Failed to build post #{post}: #{inspect(err)}")
end
end
def copy_img(%Context{} = ctx) do
ctx
end
end

View file

@ -3,6 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" sizes="32x32" href="/assets/img/favicon-32x32.png">
<title><%= prefix_title("sloane.sh", attrs[:page_title]) %></title>
<link rel="stylesheet" href="/assets/app.css" />
</head>