aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris2016-10-30 00:17:01 +0200
committerJoris2016-10-30 00:17:01 +0200
commitcd19cf40e6df95f074f7b1433c61a77962f8397f (patch)
tree8614c8fddc610c580de34667ecd67dad1f3d285f
parentcff739998124f40698680fb321f2032bf9ca480b (diff)
downloadcooking-cd19cf40e6df95f074f7b1433c61a77962f8397f.tar.gz
cooking-cd19cf40e6df95f074f7b1433c61a77962f8397f.tar.bz2
cooking-cd19cf40e6df95f074f7b1433c61a77962f8397f.zip
Add page icon
-rw-r--r--Cooking.hs4
-rw-r--r--images/icon.pngbin0 -> 3110 bytes
-rw-r--r--templates/main.html1
3 files changed, 5 insertions, 0 deletions
diff --git a/Cooking.hs b/Cooking.hs
index 5c368d0..809f50f 100644
--- a/Cooking.hs
+++ b/Cooking.hs
@@ -5,6 +5,10 @@ import Hakyll
main :: IO ()
main = hakyllWith configuration $ do
+ match "images/*" $ do
+ route idRoute
+ compile copyFileCompiler
+
match "design/*.hs" $ do
route $ setExtension "css"
compile $ getResourceString >>= withItemBody (unixFilter "runghc" [])
diff --git a/images/icon.png b/images/icon.png
new file mode 100644
index 0000000..2bb22d2
--- /dev/null
+++ b/images/icon.png
Binary files differ
diff --git a/templates/main.html b/templates/main.html
index 36da806..be23249 100644
--- a/templates/main.html
+++ b/templates/main.html
@@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>$title$</title>
<link rel="stylesheet" href="/design/main.css" />
+ <link rel="icon" href="/images/icon.png">
</head>
<body>
<a href="/" class="header">