Skip to content

Commit 7eaf7f4

Browse files
committed
feat: generated press page
1 parent d7c9a23 commit 7eaf7f4

File tree

5 files changed

+95
-65
lines changed

5 files changed

+95
-65
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: IOHK Sponsors the Haskell Foundation
3+
link: https://iohk.io/en/blog/posts/2020/11/04/iohk-sponsors-new-haskell-foundation/
4+
---
5+
IOHK is one of the first sponsors of the Haskell Foundation because we believe in the power of functional programming, open-source software, and open governance. So, we are delighted to be able to join other key companies in supporting the community through an open and transparent process in which everyone can participate...

site.hs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,23 @@ main = hakyll $ do
9090
>>= loadAndApplyTemplate "templates/boilerplate.html" sponsors
9191
>>= relativizeUrls
9292

93+
-- press -----------------------------------------------------------------------------------------------
94+
match "press/**.markdown" $ compile pandocCompiler
95+
create ["news/press/index.html"] $ do
96+
route idRoute
97+
compile $ do
98+
sponsors <- sponsorsCtx . sortOn itemIdentifier <$> loadAll "donations/sponsors/*.markdown"
99+
press <- recentFirst =<< loadAll "press/*.markdown"
100+
101+
let ctx =
102+
listField "press_articles" defaultContext (return press) <>
103+
defaultContext
104+
105+
makeItem ""
106+
>>= loadAndApplyTemplate "templates/press/list.html" ctx
107+
>>= loadAndApplyTemplate "templates/boilerplate.html" sponsors
108+
>>= relativizeUrls
109+
93110
-- templates -------------------------------------------------------------------------------------------
94111
match "templates/*" $ compile templateBodyCompiler
95112
match "templates/**" $ compile templateBodyCompiler

site/news/press/index.html

Lines changed: 0 additions & 65 deletions
This file was deleted.

templates/press/list.html

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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">Press</h1>
43+
44+
</div>
45+
</div>
46+
47+
$for(press_articles)$
48+
$partial("templates/press/tile.html")$
49+
$endfor$
50+
51+
<div class="mt-16 md:mt-24">
52+
53+
<div class="xl:max-w-screen-xl mx-auto md:px-12 lg:px-16">
54+
<div class="bg-gray-800 shadow-lg shadow-xl shadow-md shadow-sm px-6 sm:px-12 md:px-12 lg:px-16 py-16 md:py-20">
55+
<h2 class="text-gray-50 font-normal text-3xl-4xl text-center">Press Kit</h2>
56+
<p class="mt-10 lg:text-xl text-gray-300 leading-relaxed text-center">
57+
58+
Please reach out to us at <a href="mailto:[email protected]">[email protected]</a> for our
59+
press kit, including relevant marketing materials and branding.
60+
61+
</p>
62+
</div>
63+
</div>
64+
65+
</div>

templates/press/tile.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<div class="max-w-screen-md mx-auto grid gap-8">
2+
<div class="bg-gray-100 px-6 sm:px-12 space-y-4 py-12">
3+
<a href="$link$">
4+
<h2 class="font-normal text-xl-2xl">$title$</h2>
5+
</a>
6+
$body$
7+
</div>
8+
</div>

0 commit comments

Comments
 (0)