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/
|
/.elixir_ls/
|
||||||
|
|
||||||
/priv/output/
|
/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
|
ctx
|
||||||
|> build_pages()
|
|> build_pages()
|
||||||
|> build_posts()
|
|> build_posts()
|
||||||
|
|> copy_img()
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_pages(%Context{} = ctx) do
|
def build_pages(%Context{} = ctx) do
|
||||||
|
@ -53,4 +54,9 @@ defmodule SloaneSH.Build do
|
||||||
err -> Logger.error("Failed to build post #{post}: #{inspect(err)}")
|
err -> Logger.error("Failed to build post #{post}: #{inspect(err)}")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def copy_img(%Context{} = ctx) do
|
||||||
|
|
||||||
|
ctx
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<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>
|
<title><%= prefix_title("sloane.sh", attrs[:page_title]) %></title>
|
||||||
<link rel="stylesheet" href="/assets/app.css" />
|
<link rel="stylesheet" href="/assets/app.css" />
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue