Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicon-16x16.ico
Binary file not shown.
Binary file modified assets/favicon.ico
Binary file not shown.
34 changes: 34 additions & 0 deletions assets/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion assets/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
{% endif %}
</title>

<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" sizes="32x32" type="image/x-icon">
<link rel="icon" href="/favicon-16x16.ico" sizes="16x16" type="image/x-icon">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">

<script src="https://cdn.tailwindcss.com"></script>

Expand Down
7 changes: 5 additions & 2 deletions bin/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ open Yocaml

let into = Path.rel [ "www" ]
let assets = Path.rel [ "assets" ]
let copy_favicon = Action.copy_file ~into Path.(assets / "favicon.ico")
let copy_file_to_www f = Action.copy_file ~into Path.(assets / f)

let create_css =
let css = Path.(assets / "css") in
Expand Down Expand Up @@ -104,7 +104,10 @@ let process () =
let open Eff in
let cache = Path.(into / ".cache") in
Action.restore_cache cache
>>= copy_favicon
>>= copy_file_to_www "favicon.ico"
>>= copy_file_to_www "favicon-16x16.ico"
>>= copy_file_to_www "favicon.svg"
>>= copy_file_to_www "apple-touch-icon.png"
>>= create_css
>>= create_index
>>= create_events
Expand Down
Loading