@@ -41,7 +41,7 @@ main = hakyll $ do
41
41
route idRoute
42
42
compile $ do
43
43
sponsors <- buildBoilerplateCtx (Just " Sponsorship" )
44
- iks <- loadAll " donations/inkind/*.markdown"
44
+ iks <- loadAll ( " donations/inkind/*.markdown" .&&. hasNoVersion)
45
45
46
46
let ctx =
47
47
listField " inkinds" defaultContext (return iks) <>
@@ -69,7 +69,7 @@ main = hakyll $ do
69
69
route idRoute
70
70
compile $ do
71
71
sponsors <- buildBoilerplateCtx (Just " Affiliates" )
72
- ctx <- affiliatesCtx . sortOn itemIdentifier <$> loadAll " affiliates/*.markdown"
72
+ ctx <- affiliatesCtx . sortOn itemIdentifier <$> loadAll ( " affiliates/*.markdown" .&&. hasNoVersion)
73
73
74
74
makeItem " "
75
75
>>= loadAndApplyTemplate " templates/affiliates/list.html" ctx
@@ -125,7 +125,7 @@ main = hakyll $ do
125
125
route idRoute
126
126
compile $ do
127
127
sponsors <- buildBoilerplateCtx (Just " Press" )
128
- press <- recentFirst =<< loadAll " press/*.markdown"
128
+ press <- recentFirst =<< loadAll ( " press/*.markdown" .&&. hasNoVersion)
129
129
130
130
let ctx =
131
131
listField " press_articles" defaultContext (return press) <>
@@ -142,7 +142,7 @@ main = hakyll $ do
142
142
route idRoute
143
143
compile $ do
144
144
sponsors <- buildBoilerplateCtx (Just " FAQ" )
145
- ctx <- faqCtx <$> loadAll " faq/*.markdown"
145
+ ctx <- faqCtx <$> loadAll ( " faq/*.markdown" .&&. hasNoVersion)
146
146
147
147
makeItem " "
148
148
>>= loadAndApplyTemplate " templates/faq/list.html" ctx
@@ -155,7 +155,7 @@ main = hakyll $ do
155
155
route idRoute
156
156
compile $ do
157
157
sponsors <- buildBoilerplateCtx (Just " Who We Are" )
158
- ctx <- whoWeAreCtx <$> loadAll " who-we-are/people/*.markdown"
158
+ ctx <- whoWeAreCtx <$> loadAll ( " who-we-are/people/*.markdown" .&&. hasNoVersion)
159
159
160
160
makeItem " "
161
161
>>= loadAndApplyTemplate " templates/who-we-are/exec-and-board.html" ctx
@@ -166,7 +166,7 @@ main = hakyll $ do
166
166
route idRoute
167
167
compile $ do
168
168
sponsors <- buildBoilerplateCtx (Just " Past Boards" )
169
- ctx <- whoWeAreCtx <$> loadAll " who-we-are/people/*.markdown"
169
+ ctx <- whoWeAreCtx <$> loadAll ( " who-we-are/people/*.markdown" .&&. hasNoVersion)
170
170
171
171
makeItem " "
172
172
>>= loadAndApplyTemplate " templates/who-we-are/past-board.html" ctx
@@ -247,7 +247,7 @@ main = hakyll $ do
247
247
compile $ do
248
248
sponsors <- buildBoilerplateCtx (Just " Haskell Foundation" )
249
249
podcastsCtx <- podcastListCtx . take 1 . reverse . sortOn podcastOrd <$> loadAll (" podcast/*/index.markdown" .&&. hasVersion " raw" )
250
- careers <- loadAll @ String " careers/*.markdown"
250
+ careers <- loadAll @ String ( " careers/*.markdown" .&&. hasNoVersion)
251
251
careersCtx <- careersCtx . reverse <$> loadAll " careers/*.markdown"
252
252
announces <- take 1 <$> (recentFirst =<< loadAll @ String (" news/*/**.markdown" .&&. hasNoVersion))
253
253
let announceCtx = announcementsCtx announces
@@ -274,7 +274,7 @@ main = hakyll $ do
274
274
route idRoute
275
275
compile $ do
276
276
sponsors <- buildBoilerplateCtx (Just " Resources" )
277
- resources <- loadAll " resources/*.markdown"
277
+ resources <- loadAll ( " resources/*.markdown" .&&. hasNoVersion)
278
278
279
279
let ctx =
280
280
listField " resources" defaultContext (return resources) <>
@@ -300,8 +300,8 @@ main = hakyll $ do
300
300
route idRoute
301
301
compile $ do
302
302
sponsors <- buildBoilerplateCtx (Just " Careers" )
303
- ctx <- careersCtx <$> loadAll " careers/*.markdown"
304
- hiringSponsors <- hiringSponsorsCtx <$> loadAll " donations/sponsors/*.markdown"
303
+ ctx <- careersCtx <$> loadAll ( " careers/*.markdown" .&&. hasNoVersion)
304
+ hiringSponsors <- hiringSponsorsCtx <$> loadAll ( " donations/sponsors/*.markdown" .&&. hasNoVersion)
305
305
306
306
makeItem " "
307
307
>>= loadAndApplyTemplate " templates/careers/list.html" (ctx <> hiringSponsors)
@@ -329,7 +329,8 @@ main = hakyll $ do
329
329
-- sponsors --------------------------------------------------------------------------------------------
330
330
331
331
buildBoilerplateCtx :: Maybe String -> Compiler (Context String )
332
- buildBoilerplateCtx mtitle = boilerPlateCtx mtitle . sortOn itemIdentifier <$> loadAll " donations/sponsors/*.markdown"
332
+ buildBoilerplateCtx mtitle =
333
+ boilerPlateCtx mtitle . sortOn itemIdentifier <$> loadAll (" donations/sponsors/*.markdown" .&&. hasNoVersion)
333
334
334
335
-- | Partition sponsors into by level: monad, applicative, and functor
335
336
-- Sponsors are listed in the footer template, which means we need this
0 commit comments