@@ -120,6 +120,7 @@ data Experience = Experience
120
120
, startDate :: String
121
121
, endDate :: Maybe String
122
122
, technologies :: [Technology ]
123
+ , hasTechnologies :: Bool
123
124
, content :: String
124
125
}
125
126
deriving (Generic , Eq , Show , FromJSON , Binary )
@@ -184,23 +185,23 @@ mdToHTML = markdownToHTMLWithOpts markdownOptions defaultHtml5Options
184
185
Builders
185
186
------------------------------------------------}
186
187
buildExperience :: FilePath -> Action Experience
187
- buildExperience srcPath = cacheAction (" build" :: T. Text , srcPath ) $ do
188
+ buildExperience srcPath = cacheAction (" build experience " :: T. Text , srcPath ) $ do
188
189
liftIO . putStrLn $ " Rebuilding aboutme/experience: " <> srcPath
189
190
experienceContent <- readFile' srcPath
190
191
-- load post content and metadata as JSON blob
191
192
experienceData <- mdToHTML . T. pack $ experienceContent
192
193
convert experienceData
193
194
194
195
buildBio :: FilePath -> Action Bio
195
- buildBio srcPath = cacheAction (" build" :: T. Text , srcPath ) $ do
196
+ buildBio srcPath = cacheAction (" build bio " :: T. Text , srcPath ) $ do
196
197
liftIO . putStrLn $ " Rebuilding aboutme/bio: " <> srcPath
197
198
bioContent <- readFile' srcPath
198
199
-- load post content and metadata as JSON blob
199
200
bioData <- mdToHTML . T. pack $ bioContent
200
201
convert bioData
201
202
202
203
buildEducation :: FilePath -> Action Education
203
- buildEducation srcPath = cacheAction (" build" :: T. Text , srcPath ) $ do
204
+ buildEducation srcPath = cacheAction (" build education " :: T. Text , srcPath ) $ do
204
205
liftIO . putStrLn $ " Rebuilding aboutme/education: " <> srcPath
205
206
eduContent <- readFile' srcPath
206
207
-- load post content and metadata as JSON blob
@@ -347,11 +348,6 @@ buildGithubIdentityClaim = do
347
348
outputFolder <- ask
348
349
lift $ copyFileChanged " site/github.html" $ outputFolder <> " github.html"
349
350
350
- buildForestXSLT :: SiteM ()
351
- buildForestXSLT = do
352
- outputFolder <- ask
353
- lift $ copyFileChanged " site/forest.xsl" $ outputFolder <> " forest.xsl"
354
-
355
351
{- -----------------------------------------------
356
352
Shake Build
357
353
------------------------------------------------}
@@ -365,7 +361,6 @@ buildRules = do
365
361
buildFeed allPosts
366
362
buildCNAME
367
363
buildGithubIdentityClaim
368
- buildForestXSLT
369
364
copyStaticFiles
370
365
371
366
main :: IO ()
0 commit comments