KJJ4F3EOZ6YH6OWPX62P7FH3TXFKR35AEM7UGG3L7KDAP5WY2PJAC
HNGBPIEC3RQN6NPS6F2XNT5GKIU4UKDJV5D7HD4ZOAVZK7GELUEAC
TUIGPRCLOWRHD2UQD3ZSWHWKKIJTRXB7LP3DDMTGEL4OFORXY24AC
GMPDNQSTZJIJ6J2NF5VT4EWMUDJUHEF7DGSFI55GSDVOXJEZNKQQC
DLJPWVRPZ5E4TC7IXF4DBPN3KQZCC4F5GBT222Q4W4FAJSAIHBFQC
GVZHJUHQDTV5P2U5YHHQRDGP3Y7FE6337OIKLGXN2PJETJP5NKQQC
PDH2BEBXR6WCCO2GRS3L6HMLQNCC2JU5BOKZLV4DLFPQD2UZFJKQC
notes :: Pattern
notes = fromList . map (fromFilePath . ("notes/" ++ )) $
["japonais.org"
, "medecine/bacteriologie.org"
, "medecine/hématologie.org"
, "medecine/virologie.org"]
notesMedecine = "notes/medecine/*.org"
notesTOC = [ "notes/medecine/bacteriologie.org"
, "notes/medecine/hématologie.org"
, "notes/medecine/virologie.org"]
withTOC :: WriterOptions
withTOC = defaultHakyllWriterOptions { writerTableOfContents = True }
-- Generate table of contents
withTOC = defaultHakyllWriterOptions { Pandoc.writerTableOfContents = True
, Pandoc.writerTOCDepth = 1
, Pandoc.writerTemplate = Just tocTemplate
}
-- from jaspervdj website
tocTemplate = either error id $ either (error . show) id $
Pandoc.runPure $ Pandoc.runWithDefaultPartials $ Pandoc.compileTemplate "" "$toc$\n$body$"