add favicon

This commit is contained in:
2024-09-23 16:50:20 -07:00
parent 4e2cffd68c
commit f17e728c69
3 changed files with 7 additions and 1 deletions
+1
View File
@@ -12,3 +12,4 @@ posts/
publications/
files/
font-awesome/
favicon/
+1 -1
View File
@@ -16,7 +16,7 @@ main :: IO ()
main = hakyllWith config $ do
-- Static directories
match ("fonts/*" .||. "images/*" .||. "files/*" .||. "film/*" .||. "font-awesome/**") $ do
match ("fonts/*" .||. "images/*" .||. "files/*" .||. "film/*" .||. "font-awesome/**" .||. "favicon/*") $ do
route idRoute
compile copyFileCompiler
+5
View File
@@ -10,6 +10,11 @@
<link href="/font-awesome/css/fontawesome.css" rel="stylesheet" />
<link href="/font-awesome/css/brands.css" rel="stylesheet" />
<link href="/font-awesome/css/solid.css" rel="stylesheet" />
<!-- favicon from http://www.dailydropcap.com/tag/r -->
<link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png">
<link rel="manifest" href="/favicon/site.webmanifest">
<script>
// check for dark mode preference, add functionality to theme switcher
document.addEventListener("DOMContentLoaded", function() {