add favicon
This commit is contained in:
parent
f9af48bca6
commit
102f513da8
4 changed files with 9 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -28,3 +28,5 @@ sloane_sh-*.tar
|
|||
/.elixir_ls/
|
||||
|
||||
/priv/output/
|
||||
|
||||
.DS_Store
|
||||
|
|
BIN
assets/img/favicon-32x32.png
Normal file
BIN
assets/img/favicon-32x32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 889 B |
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue