Skip to content

Commit 27d0893

Browse files
authored
Merge pull request #150 from haskellfoundation/404
Add custom 404 page.
2 parents 1240c99 + a2ebf75 commit 27d0893

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

404.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<div class="max-w-screen-xl mx-auto py-16 md:py-24">
2+
<div class="sm:px-6 lg:px-16">
3+
<div class="relative">
4+
<div class="absolute top-0 left-0 border-t border-l border-purple-50 h-10 md:h-20 w-10 md:w-20">
5+
<div
6+
class="absolute top-1 md:top-2 left-1 md:left-2 border-t border-l border-purple-100 h-10 md:h-20 w-10 md:w-20">
7+
<div
8+
class="absolute top-1 md:top-2 left-1 md:left-2 border-t border-l border-purple-200 h-10 md:h-20 w-10 md:w-20">
9+
<div
10+
class="absolute top-1 md:top-2 left-1 md:left-2 border-t border-l border-purple-300 h-10 md:h-20 w-10 md:w-20">
11+
<div
12+
class="absolute top-1 md:top-2 left-1 md:left-2 border-t border-l border-purple-400 h-10 md:h-20 w-10 md:w-20">
13+
<div
14+
class="absolute top-1 md:top-2 left-1 md:left-2 border-t border-l border-purple-500 h-10 md:h-20 w-10 md:w-20">
15+
</div>
16+
</div>
17+
</div>
18+
</div>
19+
</div>
20+
</div>
21+
<div class="absolute top-0 right-0 border-t border-r border-purple-50 h-10 md:h-20 w-10 md:w-20">
22+
<div
23+
class="absolute top-1 md:top-2 right-1 md:right-2 border-t border-r border-purple-100 h-10 md:h-20 w-10 md:w-20">
24+
<div
25+
class="absolute top-1 md:top-2 right-1 md:right-2 border-t border-r border-purple-200 h-10 md:h-20 w-10 md:w-20">
26+
<div
27+
class="absolute top-1 md:top-2 right-1 md:right-2 border-t border-r border-purple-300 h-10 md:h-20 w-10 md:w-20">
28+
<div
29+
class="absolute top-1 md:top-2 right-1 md:right-2 border-t border-r border-purple-400 h-10 md:h-20 w-10 md:w-20">
30+
<div
31+
class="absolute top-1 md:top-2 right-1 md:right-2 border-t border-r border-purple-500 h-10 md:h-20 w-10 md:w-20">
32+
</div>
33+
</div>
34+
</div>
35+
</div>
36+
</div>
37+
</div>
38+
</div>
39+
40+
</div>
41+
<div class="text-center pt-12 md:pt-20 px-12 sm:px-16 md:px-24 lg:px-36 ">
42+
<h1 class="text-2xl-5xl">Unable to find that page!</h1>
43+
44+
</div>
45+
46+
</div>

site.hs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,16 @@ main = hakyll $ do
208208
>>= loadAndApplyTemplate "templates/boilerplate.html" sponsors
209209
>>= relativizeUrls
210210

211+
-- 404 -------------------------------------------------------------------------------------------------
212+
match "404.html" $ do
213+
route idRoute
214+
compile $ do
215+
sponsors <- buildSponsorsCtx
216+
getResourceBody
217+
>>= applyAsTemplate sponsors
218+
>>= loadAndApplyTemplate "templates/boilerplate.html" sponsors
219+
>>= relativizeUrls
220+
211221
-- templates -------------------------------------------------------------------------------------------
212222
match "templates/*" $ compile templateBodyCompiler
213223
match "templates/**" $ compile templateBodyCompiler

0 commit comments

Comments
 (0)