blog/blog-meta/combo-filter.hs
rhiannon morris 5a94aae932 make less inefficient
- do all filters in one go
- do all post lists in one run of the program
- only write files if they are changed
  (so make repeats less work)
- simplify pandoc command for meta pages
  (this might not actually make a difference)
2024-12-03 20:17:27 +01:00

12 lines
232 B
Haskell

import FixFigures
import LangFilter
import NiceDate
import SlugTags
import Text.Pandoc.JSON
import Text.Pandoc.Walk
main :: IO ()
main = toJSONFilter $
langFilter "currentcolor" .
walk (niceDate . slugTags) .
walk fixFigures